Menu


.

Write a program to find whether it is capital,small letter,number or special symbol.

#include< iostream.h >

#include< conio.h >

void main()

{

clrscr();

int a;

char ch;

cout<<"Enter any character";

cin>>ch;

a=ch;

if(a>=65 && a<=90)

cout<<"It's capital letter";

else if(a>=97 && a<=122);

cout<<"It is small letter";

else if(a>=48 && a<=57);

cout<<"It is a number";

else

cout<<"It is a special symbol";

getch();

}




Enjoy our courses Today