Q 38 Write a program to input three integers and print the largest of them.
QGP:
Which language do you want it in? I can help with JAVA
Answers
Answered by
1
void main()
{
int a,b,c,max;
cin>>a>>b>>c;
max=a;
if(b>max)
max=b;
if(c>max;
max=c;
cout<<max;
}
{
int a,b,c,max;
cin>>a>>b>>c;
max=a;
if(b>max)
max=b;
if(c>max;
max=c;
cout<<max;
}
Similar questions