Please don't get frustrated with my questions. I know I'm not skilled at programming.
How about this...why is this not working properly? I can make it work if I make it a single file with two functions, but I can't make it work as two files.
File 1:
Code:
#include<stdio.h>
int main()
{
float i;
i = values(0.5,0.4);
printf("Num is %f.\n", i);
}
File 2:
Code:
#include<stdio.h>
float values(float a, float b)
{
float n;
n = a-b;
return n;
}
The values a and b aren't being sent properly. I don't understand why. Can someone explain why instead of telling me that I'm stupid and don't understand functions...I already know that much.