#include<iostream.h>
#include<conio.h>
main()
{
char ch;
//ch=character
clrscr();
cout<<"Enter
any charcter to find out weather it is special symbol or not : ";
cin>>ch;
if((ch>=0&&ch<=47)||(ch>=58&&ch<=64)||(ch>=91&&ch<=96)||(ch>=123&&ch<=127)
{ cout>>"\nThe input character is special symbol.";}
else
cout>>"\nThe
input character is not special symbol.";
getch();
}
No comments:
Post a Comment