Change lower case later to upper case
#include<stdio.h>
#include<conio.h>
#include<ctype.h>
void main()
{
char ch,c;
clrscr();
textcolor(2);
gotoxy(15,10);
cprintf("enter the any charecter= ");
scanf("%c",&ch);
textcolor(4+5);
gotoxy(15,13);
if(islower(ch))
{
printf("\n");
gotoxy(15,16);
putchar(toupper(ch)); //change in uppercase
}
else
{
gotoxy(15,16);
putchar(tolower(ch));
}
getch();
}
Output
No comments:
Post a Comment