0

Write a program to input three integers and print the largest of three

using if else statement: I can't understand this code...an explanation will do the job too. int x,y,z,max; cout<< "enter values"; cin>>x>>y>>z; max=x; if(y>max) max=y; if(z>max) max=z; cout<<" the largest no is"<< max;

22nd Aug 2018, 12:57 PM
riya
riya - avatar
1 ответ
0
Show us your attempt by providing what you have coded so far and we will help you.
22nd Aug 2018, 1:09 PM
Steppenwolf
Steppenwolf - avatar