Q:

C++ Program To Check Character Is Uppercase, Lowercase Alphabet Or A Digit Or A Special Symbol

-1

 C Program To Check Character Is Uppercase( Like A,B,C........Z) , Lowercase ( Like a,b,c.....z )  Alphabet Or A Digit ( Like 1,2,3,.......9 ) , Or A Special Symbol ( Like #,@,<,> ) .

To Solve this problem we will use ASCII Value  if character is between 65 to 90 then You Entered UPPER CASE if it is 97 to 122 Then You Entered LOWER CASE if it is between 48 to 57 then it is a DIGIT And Rest Are SPECIAL SYMBOLS.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include<iostream>
using namespace std;
int main()
{
    double num1, num2, num3;

    cout<<"Enter Three Numbers: ";
    cin>>num1>>num2>>num3;

    if (num1>=num2)
    {
        if(num1>=num3)
            cout<<num1<<" Is The Largest Number. ";
        else
            cout<<num3<<" Is The Largest Number. ";
    }
    else
    {
        if(num2>=num3)
            cout<<num2<<" Is The Largest Number. ";
        else
            cout<<num3<<" is the largest number.";
    }
    
    return 0;

}

 

Output:

Enter Three Numbers: 563.23

652.12

456

 

652.12 Is The Largest Number. 

need an explanation for this answer? contact us directly to get an explanation for this answer
need an explanation for this answer? contact us directly to get an explanation for this answer

#include<iostream>
using namespace std;
int main()
{
char a;
int b;
cout<<"Enter The Character ";
cin>>a;
b=a;
cout<<b<<endl;
}

 

Output:

Enter The Character a

97

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (2)

C++ Program To Find Greatest Among Three Numbers... >>