1
0
mirror of https://github.com/krislamo/knrc.git synced 2024-11-10 00:30:35 +00:00
knrc/02-vars-and-math.c

12 lines
245 B
C

#include <stdio.h>
/* print Fahrenheit-Celsius table */
int main()
{
int fahr;
printf("Fahrenheit\tCelsius\n=======================\n");
for (fahr = 0; fahr <= 300; fahr = fahr + 20)
printf("%3d\t\t%7.1f\n", fahr, (5.0/9.0)*(fahr-32));
}