Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- char uptolow(char c)
- {
- if(c>='A'&&c<='Z')
- {
- return c+32;
- }
- return c;
- }
- int main()
- {
- for(char c='A';c<='z';c++)
- {
- cout<<c<<"\t"<<(int)c<<"\t"<<uptolow(c)<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment