Wrong anti-spam code


The function max3 has to calculate the maximum of the three arguments a, b, and c of type double. The implementation is missing some commands. Replace the text // ??? // with the missing commands that would result in the correct function.

double max3(double a, double b, double c){
   double result;  result = a;
   if(b > a){ result =b; }
   // ??? //
   return result;
int main(){
   double x; double y; double z;
   double m=max3(x,y,z);
   return 0;

Your submission

Prove that you are not a robot.