program to check lower and upper case

Advertisements

Prev Tutorial Next Tutorial

program to check lower and upper case

  • islower(): Function is used to check character in lower case or not.
  • isupper(): Function is used to check character in upper case or not.
  • isdigit(): Function is used to check character in digit or not.

program to check lower and upper case

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

void main()
{
char ch;
clrscr();
printf("Enter any charecter: ");
scanf("%c",&ch);
if(islower(ch))
{
printf("\n Lower case small letter");
}
else if(isupper(ch))
{
printf("Upper case capital letter");
}
else if(isdigit(ch))
{
printf("This number or digit");
}
else
{
printf("This is speciial symbol");
}
getch();
}

Output

Enter any character: c
Lower case small letter

Prev Tutorial Next Tutorial

Google Advertisment

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements