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.

#include<iostream> 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; std::cin>>x>>y>>z; double m=max3(x,y,z); std::cout<<m<<"\n"; return 0; }