-
-
Save amankharwal/decbc9428e1725ac30ad156a1faf185f 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> | |
using namespace std; | |
int main(){ | |
int counter; | |
char letter; | |
cout<<"Enter any letter : "; | |
cin>>letter; | |
counter = letter; | |
if (counter >= 65 && counter <=90){ | |
counter = counter + 32; | |
letter = counter; | |
cout<<letter; | |
} | |
else if (counter >= 96 && counter <= 122){ | |
counter = counter - 32; | |
letter = counter; | |
cout<<letter; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment