Thursday, July 25, 2019

c program to uppercase and lowercase.

c program to uppercase and lowercase:


check the number uppercase or lower case


//check the number uppercase or lower case

#include<stdio.h>
#include<conio.h>

void main()
{
char no;
clrscr();
printf("Enter Your Number :- ");
scanf("%c",&no);

if(no>='A'&& no<='Z')
{
printf("Upper Case %c",no);
}
else if(no>='a' && no<='z')
{
printf("Lower Case %c",no);
}
else
{
printf("Not Alphabet.");

}
getch();


}

Output:



EmoticonEmoticon