I am working on a program that will convert the Fahrenheit value taken and returning a celsius.
We have to use a user defined function to calculate. The program doesn't work ofcourse.
printf ("Please enter a Fahrenheit value:");
scanf ("%.1f", &fahren);
float celsius, fahren;
printf("%.1f degrees Fahrenheit is %.1f degrees Celsius", fahren, celsius);
I have a question too. I have seen my teacher writing the user defined fuction like this:
so did he just declared the variables in the fuction?. So will this be a local variable or a global variable?. Sorry I am little confused with fuctions again .
void calculate(int dice1, int dice2);
thanks for any help