How can I extend the following code for MAX(a, b, c), MAX(a, b, c, d) etc without writing out a new function?
Code:double MAX(double M, double N) { if (M > N){return M;} else{return N;} }
How can I extend the following code for MAX(a, b, c), MAX(a, b, c, d) etc without writing out a new function?
Code:double MAX(double M, double N) { if (M > N){return M;} else{return N;} }