Thursday, 9 January 2014

CHAICK A NUMBER UPPER CASE LOWER CASE

CHAICK A NUMBER UPPER CASE LOWER CASE

#include<stdio.h>
#include<conio.h>
#include<ctype.h>
void main()
{
char ch;
clrscr();
textcolor(2);
gotoxy(15,10);
cprintf("enter the any charecter= ");
scanf("%c",&ch);
textcolor(4+5);
gotoxy(15,13);
if(islower(ch))
{
textcolor(12);
gotoxy(15,16);
cprintf("\n lower case small letter");
}
else if(isupper(ch))
{
gotoxy(15,16);
cprintf("upper case capital letter");
}
else if(isdigit(ch))
{
gotoxy(15,16);
cprintf("this no. is digit");
}
else
{
cprintf("this is speciial symbol");
}
getch();
}

Output

CHAICK A NUMBER UPPER CASE LOWER CASE

CHAICK A NUMBER UPPER CASE LOWER CASE

No comments:

Post a Comment