[Solved] Using a function to find the minimum of three values [closed]
#include <stdio.h> #include <math.h> double minimum(double x, double y, double z) { double temp = 0; if (isnan(x) || isnan (y) || isnan(z)) return NAN; temp = (x < y) ? x : y; return (temp < z)? temp : z; } int main(void) { double x, y, z, minVal; printf(“Please enter three numeric values: … Read more