32. WAP to check given alphabet is lower case or upper case using conditional operator.
#include<stdio.h>
void
main()
{
char ch;
printf("Enter a character :
");
scanf("%c",&ch);
ch>>5&1 ? printf("Lower
Case\n") : printf("Upper Case\n");
}
Comments
Post a Comment