google.com, pub-6167773875660516, DIRECT, f08c47fec0942fa0 Write a program to find whether the entered character is lowercase or uppercase - 2nd puc computer science

Write a program to find whether the entered character is lowercase or uppercase

Write a program to find whether the entered character is lowercase or uppercase

#include<stdio.h>

#include<conio.h>

void main()

{

char ch;

clrscr();

printf("Enter the character: ");

scanf("%c",&ch);

if(ch>='A'&&ch<='Z')

printf("It is an uppercase letter");

else

printf("It is a lowercase letter");

getch();

}

Output:


run 1:

Enter the character: H

It is an uppercase letter 


run 2:

Enter the character: a

It is a lowercase letter          

Write a program to find whether the entered character is lowercase or uppercase Write a program to find whether the entered character is lowercase or uppercase Reviewed by Vision Academy on December 08, 2021 Rating: 5

No comments:

CheckOut

Powered by Blogger.