C++12 code(nested if -->Max number )

#include using namespace std; int main() { long double a,b,c,d; couta; cout

Jan 21, 2025 - 21:53
 0
C++12 code(nested if -->Max number )
    #include
    using namespace std; 
    int main()
    {
long double a,b,c,d; 
cout<<"\n Enter first number (a) : ";
cin>>a; 
cout<<"\n";
cout<<"\n Enter Second number (b) : ";
cin>>b; 
cout<<"\n";
cout<<"\n Enter Third number (c) : ";
cin>>c; 
cout<<"\n";
cout<<"\n Enter Fourth number (d) : ";
cin>>d; 
cout<<"\n";
if(a>b&&a>c&&a>d)
{
 cout<< "\n\n The Largest Number is a ="<a&&b>c&&b>d)
{
    cout<<"\n\n The Largest Number is b = "<a&&c>b&&c>d)
{
    cout<<"\n\n The Largest Number is c = "<a&&d>b&&d>c)
{
    cout<<"\n\n The Largest Number is  d = "<

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow