Write a Program to find weather entered is in which case
//This program is to find weather entered is in which case
#include<stdio.h>
main()
{
char c;
printf("Enter any Alphabet\n");
scanf("%c",&c);
if(c>='a' && c<='z')
printf("%c is in lowercase\n",c);
else if(c>='A' && c<='Z')
printf("%c is in UPPERCASE\n",c);
else
printf("I said to enter an ALPHABET. GOOD BYE\n");
}
/*
INPUT:
Enter any Alphabet
d
OUTPUT:
d is in lowercase
Comments
Post a Comment