Question: make this simpler int findMin 2 ( int a , int b , int c , int d ) { int min; if ( a

make this simpler int findMin2(int a, int b, int c, int d)
{
int min;
if (a <= b && a <= c && a <= d )
min = a;
if (b <= a && b <= c && b <= d )
min = b;
if (c <= a && c <= b && c <= d )
min = c;
if (d <= a && d <= b && d <= c )
min = d;
return min;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!