Write largest(a, b, c) to return the biggest of three whole numbers. For example, largest(3, 9, 5) is 9. The numbers may be negative or equal. The starter assumes a is the biggest and keeps it in max.
largest(3, 9, 5)→9largest(7, 2, 4)→7int largest(int a, int b, int c)int largest(int a, int b, int c) {
int max = a;
// your code here: if b is bigger than max, take b; same for c
return max;
}
Run tries the examples. When they look right, Submit.