Created
June 19, 2020 16:01
-
-
Save 2hanX/3880e389e9c80ce8d3c58ba4673d1ca4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<cctype> | |
using namespace std; | |
int main() | |
{ | |
char a; | |
cin.get(a); | |
while (a != '@') | |
{ | |
if (isupper(a)) | |
cout << char(a + 32); | |
else if (islower(a)) | |
cout << char(a - 32); | |
else if (isdigit(a)) | |
cout << ""; | |
else if (isspace(a)) | |
cout << " "; | |
else | |
cout << a; | |
cin.get(a); | |
} | |
return 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment