#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
clrscr();
printf("enter the character");
scanf("%c",&ch);
if(ch>='a' && ch<='z')
{
printf("character is in lower case= %c",ch);
}
else
{
printf("character is in upper case=%c",ch);
}
}
Output:-
-enter the characterA
character is in upper case=A
No comments:
Post a Comment