PLS DONT SPAM ....... Should there be else statement between the third last and second last statement.
CONTENT QUALITY REQUIRED
Attachments:
Answers
Answered by
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!-->
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:
:-)
Answered by
0
If you dont mind, can I know ur name??
Similar questions