Saved Bookmarks
| 1. |
WAP to input any String(or word) and convert each alphabet of the string in opposite case. |
|
Answer» ONG>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. |
|