google.com, pub-6167773875660516, DIRECT, f08c47fec0942fa0 Write a C++ program to determine whether the input character is lower-case or upper-case - 2nd puc computer science

Write a C++ program to determine whether the input character is lower-case or upper-case

Write a C++ program to determine whether the input character is lower-case or upper-case

#include<iostream.h> 

#include<conio.h> 

void main( )

{

char ch ; 

clrscr( );

cout<<"Enter the Character: ";

cin>>ch;

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

cout<<"it is an Upper-Case Character"<<endl;

else

cout<<"it is a Lower-Case Character"<<endl;

getch( );

}


Write a C++ program to determine whether the input character is lower-case or upper-case Write a C++ program to determine whether the input character is lower-case or upper-case Reviewed by Vision Academy on February 27, 2022 Rating: 5

No comments:

CheckOut

Powered by Blogger.