Given your program, you need to only include <stdio.h> and <stdlib.h>.
A for loop takes three arguments, not two. The arguments F < 32; F > 212 makes no sense at all in the context of the program. What are you trying to accomplish with this? Setting F=C doesn't accomplish anything. It might help to write out the formula in English, then in English "code", then in C.
Your printf statement is printing the string, "Celsius" and then trying to convert the string (string = string of characters) "Fahrenheit" into a number which doesn't work very well. I bet you meant to replace that first %s with %f (and the second %13d with %f as well) and replace "Celsius" with C and "Fahrenheit" with the variable F.
The scanf() is wrong and doens't seem to have a point. Are you trying to get a number to convert? Is this number going to be in Fehrenheit (I presume by looking ahead to the next line)? OK, get rid of your whole loop thing before all together. Get rid of:
double F = fahrenheit, C = celsius;
completely. Add a final printf() to tell the user the conversion. Here's your code modified:
Code:
#include <stdlib.h>
#include <stdio.h>
#define CONVERSION_FACTOR (100.0 / 180.0)
int main (void)
{
// Variable declarations.
float C, F;
// Print instructions.
printf("\aPlease enter a Fahrenheit number to be converted: ");
// Scan in the number.
scanf("%f", &F);
// Do the conversion.
C = CONVERSION_FACTOR * (F - 32);
// Print out the conversion.
printf("\n\n%f in Celsius is: %f\n\n", F, C);
// Pause for user input to quit.
system("pause");
// Exit program.
return 0;
}
Hope that makes more sense to you.