Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (9 sloc) 202 Bytes
#include <stdio.h>
void main()
{
printf(" F \t C\n");
for(int fahr = 0; fahr <= 300; fahr += 20) {
float celsius = 5.0 / 9.0 * (fahr - 32);
printf("%3d\t%6.1f\n", fahr, celsius);
}
}