Program to cheque enter character is upper case or lower case in c-language

#include<stdio.h>
int main()
{
    char ch;
    printf("Enter the character\n");
    scanf("%c",&ch);
    if(ch>=65&&ch<=90)
    {
        printf("Upper case");
    }
else   if(ch>=97&&ch<=122)
    {
        printf("lower case ");
    }
    }

OUTPUT
Enter the character
y
lower case

Comments

Post a Comment

Popular posts

Creative pattern of butterfly in C-language

Program to show present time and date in C-language

Introduction of C-language.

Program to cheque enter number is a perfect number or not using if else in C-language

Program to cheque four digits number is palindrome or not in C-language

Program to print the cube of a number in c-language

Simple Hello world program in c- language