Print the status of a character.
Output :
Enter any character : 1
1 is either a special char or numeric.
Enter any character : a
a is a lower char alphabet.
Enter any character : A
A is an upper case alphabet.*/
#include
#include
void main()
{
char a;
clrscr();
printf("\nEnter any character : ");
scanf("%c",&a);
if(a>=65 && a<=90)
printf("\n%c is an Uppercase Character",a);
else if(a>=97 && a<=122)
printf("\n%c is a lower character",a);
else if(a>=48 && a<=57)
printf("\n%c is either a Special Character or Numeric ",a);
else
printf("\n%c is a Special character",a);
getch();
}
/* Output for 3 conditions are given below:
Enter any character : a
a is a lower character
Enter any character : A
A is an Uppercase Character
Enter any character : 1
1 is either a Special Character or Numeric
Shopping In MUMBAI
Are you searching for Discounts, offers, sale in Mumbai ? You are in the right place. MUMBAI, a shopping haven, has no dearth of great discounts and sales. This blog features the best MUMBAI shopping offers, sale, discounts and deals and bargains CURRENTLY GOING on in Mumbai plus a few free things thrown in on top.
Don't wait for it because once they are gone, they are gone. Hurry!..By clicking the "Like" button you will receive a daily update of discounts, sale, offers going on in Mumbai. LIKE IT.... SHARE IT...njoY.
Monday, December 29, 2008
Program to Print the status of a character.
Posted by ars at 11:39 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment