ALPHABET CASE
Code :
#include<stdio.h>
int main()
{
char ch;
printf("=======================================\n");
printf("\t ALPHABET CASE\n");
printf("=======================================\n");
printf("Enter any alphabet: ");
scanf("%c", &ch);
if(ch >= 'a' && ch <= 'z')
{
printf("\nLowercase Alphabet\n");
}
else if(ch >= 'A' && ch <= 'Z')
{
printf("\nUppercase Alphabet\n");
}
else
{
printf("\nError ! Invalid Alphabet.\n");
}
printf("---------------------------------------\n");
return 0;
}
Come again Learn again !
« iCodeBuzz »
No comments:
Post a Comment