so i made the corrections:

Code:

float max(float input)
{
float input1, input2, ma1,mi2;
if (input1 > input2)
{
ma1 = input1;
}
else
{
mi2 = input2;
}
}
float min(float input)
{
float input1, input2, ma1, mi2;
if (input1 < input2)
{
mi2 = input1;
}
else
{
ma1 = input2;
}
}

i have another program which the user inputs 2 variables. it seems that the variables arent being passed to the max and min functions am i declaring the functions right in this main function?

Code:

#include <stdio.h>
#include <stdlib.h>
float max(float input);
float min(float input);
main()
{
float input1, input2;
int term;
while (term != EOF)
{
float i1, i2;
printf("Enter a pair of float values:\n");
term = scanf("%f" "%f", &input1, &input2);
printf("You have entered %f and %f\n", input1, input2);
max(i1);
min(i2);
printf("Max = %f and Min = %f\n", i1, i2);
}
if (term == EOF)
{
printf("control-D");
exit(0);
}
}