PROGRAM:
#include <iostream.h>
#include <conio.h>
#include <stdio.h>
#include <ctype.h>
void main() {
clrscr();
char ch;
cout<<"Enter a characher: ";
ch=getchar();
if(isalpha(ch)) {
cout<<ch<<" is an alphabet\n";
if(islower(ch))
cout<<ch<<" is in lowercase\n";
else
cout<<ch<<" is in uppercase\n";
}else
cout<<ch<<" is not an alphabet\n";
getch();
}//end of the program
1 comment:
Post a Comment