![]() |
#2
yuccn2012-11-12 21:14
|
#include<iostream.h>
#include<conio.h>
void main()
{
char ch;
cin>>ch;
if((ch<='z')&&(ch>='a'))
{
ch=ch-32;
cout<<ch<<endl;
}
else
{
if((ch<='Z')&&(ch>='A'))
{
ch=ch+32;
cout<<ch<<endl;
}
else
{
cout<<ch<<endl;
}
}
getch();
}