[Solved] error printing value to screen. Max Min values [closed]


Code is missing prototypes.

That is all, format is OK, functions are OK.

#include<stdio.h>

// Add these to the same file as main() 
// Or better yet, add to another file Compute.h and #include "Compute.h" 
// here and in the the separate C file
double ComputeMinimum(double num1, double num2);
double ComputeMaximum(double num1, double num2);

int main(void)
  ...

  // suggest adding check
  if (2 != scanf("%le%le", &num1, &num2)) {
    puts("Input error");
    return -1;
  } 

solved error printing value to screen. Max Min values [closed]