+ 1
I m not understandinghow to find the largest of 2 nos
3 odpowiedzi
+ 14
if(no1>no2)
{
largest=no1;
}
else
{
largest =no2;
}
// and print the largest.
// or second and easy way
largest =(no1>no2?no1:no2);
+ 2
lar = (no1>no2)?no1:no2;
cout << "Lagest value is "<< lar <<endl;
0
thank you