/* Program for the computation of the maximum value between 3 float numbers */ #include int main() { float x, y, z; /* input data */ float max; /* output data */ printf("Insert x value: "); scanf("%f", &x); printf("Insert y value: "); scanf("%f", &y); printf("Insert z value: "); scanf("%f", &z); if (x>y) /* find the maximum between x and y, and store it in the variable max */ max=x; else max=y; if(z>max) /* compare z with max */ max=z; printf("The maximum between %f, %f and %f is %f\n", x, y, z, max); return(0); }