/*******************(soeasyprograms.blogspot.in)***********************/
/*wap to change case of character */
#include<stdio.h>
#include<conio.h>
void main()
{
char c;
clrscr();
printf("enter the character");
scanf("%c",&c);
if(c>=65&&c<91)
{
c=c+32;
printf("entered character is%c",c);
}
else
{
c=c-32;
printf("entered character is %c",c);
}
getch();
}
the output is :-
enter the character
entered character is E
/*******************(soeasyprograms.blogspot.in)***********************/
No comments:
Post a Comment