Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 277 Bytes
#include <stdio.h>
main()
{
float fahr, celsius;
int step, lower, upper;
lower = 0;
upper = 300;
step = 20;
fahr = lower;
while(fahr <= upper) {
celsius = 5.0 / 9.0 * (fahr - 32.0);
printf("%3.0f\t%.2f\n", fahr, celsius);
fahr += step;
}
}
Something went wrong with that request. Please try again.