I'm studying for my finals.
Write a function named check() that has three arguments. The first argument should accept a integer number, second a floating-point number, the third a double-precision number. The body of the function should just display the values of the data passed to the function when it is called.
void check (int, float, double);
printf("Enter a number: ");
printf("Great! Please enter a second number: ");
printf("You are almost done, now enter your last number: ");
check (firstnum, secnum, thirdnum);
void check (int x, float y, double z)
if (x >= 0)
maxnum = x;
else if (y >= 0)
maxnum = y;
else if (z >= 0)
maxnum = z;
printf("\nThe three numbers entered is %.2d %.2f and %.2d\n", maxnum);