This program work for me
In C- programming you must declare every thing before use it in your program.
In your code you should define the system("pause") command before use it.
OK. so, take care of this type of basic but very important topic.
Code:
#include <stdio.h>
#include<conio.h> // i change the header file to conio.h
/* Print Farenheit-Celsius Table
for fahr = 0, 20, ... ,300 */
main ()
{
float fahr, celsius;
int lower, upper, step;
lower = 0; /* Lower limit of temperature table */
upper = 300; /* Upper limit of temperature table */
step = 20; /* Step size */
printf("Fahr Celsius \n"); // This line wont print
fahr = lower;
while (fahr <= upper) {
celsius = (5.0/9.0) * (fahr - 32.0);
printf("%3.0f %6.1f\n", fahr, celsius); // Decimals aren't showing up
fahr = fahr + step;
} // end while
getch();
}// end main