Change the case using standard function

#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
clrscr();
printf("enter the charter \n");
scanf("%c",&ch);
if(islower(ch))
{
ch=toupper(ch);
printf("upper case=%c",ch);
}
else
if(isupper(ch))
{
ch=tolower(ch);
printf("lower case=%c",ch);
}
getch();
}

Comments