WAP to input any String(or word) and convert each alphabet of the string in opposite case.
Answers
Answered by
3
Explanation:
Approach used in the below program is as follows The ASCII values of uppercase letters[A-Z] start with 65 till 90 and lowercase letters[a-z] starts with 97 till 122. If a letter is in uppercase then add 32 to convert it to lowercase and if the letter is in lowercase then subtract 32 to convert it to uppercase.
Answered by
2
hope this answer helps you dear
Attachments:
Similar questions