Computer Science, asked by Anonymous286, 1 year ago

PLS DONT SPAM ....... Should there be else statement between the third last and second last statement.
CONTENT QUALITY REQUIRED

Attachments:

Answers

Answered by siddhartharao77
0
#include<iostream>
using namespace std;
int main()
{
int a,b,c,max;
cout<<"Enter three numbers" <<endl;
cin>>a>>b>>c;

if(b>c)
{
max=b;
}
else
{
max=c;
}
if(a>max)
{
max=a;
}
cout<<"The largest number is: ";
cout<<max;

return 0;
}



<!--Hope this helps!-->
Attachments:

siddhartharao77: :-)
Anonymous286: ok ty
siddhartharao77: ok.
Answered by vidushi99
0

If you dont mind, can I know ur name??

Similar questions