learningc/chapters/1/exercises/5.c

13 lines
273 B
C

#include <stdio.h>
#include "shared/tempsteps.h"
int main() {
float fahr = UPPER;
printf("%s", "Temperature conversion table (F to C):\n");
while (fahr >= LOWER) {
printf("%3.0f %6.1f\n", fahr, (5.0/9.0) * (fahr-32.0));
fahr = fahr - STEP;
}
return 0;
}