#include<stdio.h>
#include<conio.h>
void main() {
char ch;
clrscr();
printf("Enter an alphabet\n");
scanf("%c",&ch);
if (ch>=65&&ch<=90)
printf("%c is in Upper Case or Capital Letter\n",ch);
else {
if (ch>=97&&ch<=122)
printf("%c is Lower Case or Small Letter\n",ch);
else
printf("%c is not an alphabet\n",ch);
}
getch();
}
No comments:
Post a Comment