Softech
Friday, May 15, 2020
Check small and Capital letter
//Check whether the Character is small Or capital Alphabet
char ch='A';
if(ch>='A'&&ch<='Z')
{
cout<<"Capital\n";
}
else
{
cout<<"Not Capital\n";
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Maximum No
//Find the Maximum No between Three Nos' int i=10,o=20,k=30; if(i>o &&i>k) { cout<<"1st is g\n";...
If and If else statement
Syntax of If and If-Else Statement: if statement is used to decide whether the body is going to execute or not. If our conditio...
Leap year
//Check whether is year is leap or not int year=2020; if(year%4==0) { cout<<"leap\n"; } else { cout<...
Check small and Capital letter
//Check whether the Character is small Or capital Alphabet char ch='A'; if(ch>='A'&&ch<='Z') { ...
No comments:
Post a Comment