CSE 142 Quiz 3

July 6, 2000

Name:                                                                                     

SID:

Write the following function:

Write a function which has three integer parameters (takes 3 integer arguments), computes the largest of the three, and returns that value. You need to give the complete function definition.
 

 int Maximum(int x, int y, int z) {
   if (x > y && x > z) return x;
   if (y > x && y > z) return y;
   return z;
 }