#include <stdio.h>
#include <ctype.h>
void main()
{
char ch;
clrscr();
printf("Enter a character = ");
scanf("%c", &ch);
if (isupper(ch))
{
printf("Character is in Upper case\n");
}
else
if (islower(ch))
{
printf("Character is in Lower case\n");
}
else
if (isdigit(ch))
{
printf("It is a digit\n");
}
else
{
printf("Special Symbol\n");
}
getch();
}
Follow us on Facebook
#include <ctype.h>
void main()
{
char ch;
clrscr();
printf("Enter a character = ");
scanf("%c", &ch);
if (isupper(ch))
{
printf("Character is in Upper case\n");
}
else
if (islower(ch))
{
printf("Character is in Lower case\n");
}
else
if (isdigit(ch))
{
printf("It is a digit\n");
}
else
{
printf("Special Symbol\n");
}
getch();
}
Follow us on Facebook
c language linked list example
ReplyDeleteSearch An Element in Linked List