Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.
/ Change_String Public archive

If the first letter in a string is capital letter then change the full string to capital letters, else change the full string to small letters

License

Notifications You must be signed in to change notification settings

Mishco/Change_String

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Change_String

Given a string S, the task is to change the string according to the condition; If the first letter in a string is capital letter then change the full string to capital letters, else change the full string to small letters.

Input:

The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case contains a string S.

Output:

For each test case, print the changed string in a new line.

Constraints:

1<=T<=200
1<=|string length|<=10000

Example:

Input:

4
geEkS
FoR
sMMMMMMMMnnnnMMMNnnMMMNnnnMMM
MssssssssssssssssssssssssssssssssssssssNNmmss

Output:

geeks
FOR
smmmmmmmmnnnnmmmnnnmmmnnnnmmm
MSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSNNMMSSS

About

If the first letter in a string is capital letter then change the full string to capital letters, else change the full string to small letters

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages