include <iostream>
using namespace std;
int main()
{
char ch;
do
{ cout <<"\n Enter a character: ";
ch=getchar();
if (ch>=65 && ch<=90)
ch = ch + 32;
else
if (ch >=97 && ch <= 122)
ch = ch -32;
putchar(ch);
} while (ch!='0');
return 0;
}
This post has been edited by macosxnerd101: 17 March 2013 - 04:54 PM
Reason for edit:: Fixed code tags

New Topic/Question
Reply



MultiQuote





|