programming-examples/c/Functions/C Program to Check whether character is upper case or lower case.c
2019-11-15 12:59:38 +01:00

16 lines
306 B
C

#include<stdio.h>
void check(char);
void main()
{
char ch;
printf("enter any character");
scanf("%c",&ch);
check(ch);
}
void check(char c)
{
if(ch>=65&&ch<=90)
printf("char is upper case");
else if(ch>=97&&ch<=122)
printf("character is lower case");
}