hey guys so this file is a separate file from the main program i am writing and i keep getting a "lvalue required as left operand of assignment"
i still cant figure out what to do after fiddling around with the error.
this function is suppose to take 2 input values from my main program and see which of the pair of numbers is bigger(max) and smaller(min)
also could i ask how do i make a file.h and how do i write functions in a ".h" file
appreciate the help i can get

Code:
float max(float input)
{
float input1, input2;
if (input1 > input2)
{
max = input1;
}
else
{
max = input2;
}
}


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