#include<stdio.h>
int main()
{
char ch;
printf("Enter the character\n");
scanf("%c",&ch);
if(ch>=65&&ch<=90)
{
printf("Upper case\n");
ch=ch+32;
printf("Lower case is %c",ch);
}
else if(ch>=97&&ch<=122)
{
printf("lower case \n");
ch=ch-32;
printf("Upper case is %c",ch);
}
}
OUTPUT
Enter the character
A
Upper case
Lower case is a
Visit Homepage
Comments
Post a Comment