Answers for "writ a code to see smallest in 3 no."

1

find min of 3 nos

if (a <= b && a <= c) 
        cout << a << " is the smallest"; 
  
    else if (b <= a && b <= c) 
        cout << b << " is the smallest"; 
  
    else
        cout << c << " is the smallest";
Posted by: Guest on June-08-2020

Browse Popular Code Answers by Language