Answer :
#include<stdio.h> //header file contains the function,decleraction and macro defination of key words used in code.
char alpha; //adressing the variables
int main ()
{
printf("Enter a chracter you like\t"); //output
scanf("%c",&alpha); //stores the input from the user
if (alpha>='a' && alpha<='z') //condition
{
printf("%c is a lower case character",alpha);//output
}
else
{
printf("%c is a upper case chracter",alpha); //output
}
}
Output :
0 Comments