Computer Science, asked by shiwangi476, 5 months ago


WAP to input any String(or word) and convert each alphabet of the string in opposite case.​

Answers

Answered by ElegantAjad
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 mehakShrgll
2

hope this answer helps you dear

Attachments:
Similar questions