Computer Science, asked by gopikajyothi2008, 6 days ago

Find the expected output of the given program
#include
using namespace std;
int main()
{
int num1, num2, num3, large;
cout<<"\n Enter Three Numbers : \n";
cin>>num1>>num2>>num3;
large=num1; //Assume num1 is largest number
if(large num3)
{
large=num2;
}
else
{
large=num3;
}
}
else if(large num2)
{
large=num3;
}
else
{
large=num2;
}
}
else
{
large=num1;
}
cout<<"\n Largest Number is : "<
7

return 0;
}

Answers

Answered by ajinkyamahalpure43
0

Answer:

Largest among the input numbers.

Explanation:

The output will vary according to your input. This program will return you the largest number among the entered the numbers.

Similar questions