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

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";...