Computer Science, asked by madhu9241, 10 months ago

Page No.
2)
Write
a java program
To
input a string and print
out the text with the uppercase and lower case
reversed
Example input- WelCome To School
Output - wELcOME
to sCHOOL​

Answers

Answered by sp74685
0

Answer:

1. Take one string of any length and calculate its length.

2. Scan string character by character and keep checking the index .

3. If character in a index is in lower case, then subtract 32 to convert it in upper case, else add 32 to convert it in lower case

Print the final string.

Similar questions