Saturday, March 10, 2012

Program to check entered character is special symbol or not.

//Program to check entered character is special symbol or not.
#include<stdio.h>
#include<conio.h>
main()
{ int i;
char c;
printf("Enter character");
scanf("%c",&c);
i=c;
if((c>=0&&c<=47)||(c>=58&&c<=64))
printf("You entered a special character ");
else
printf("Not special character");
getch();
}

No comments:

Post a Comment