16 lines
277 B
C
16 lines
277 B
C
|
#include <stdio.h>
|
||
|
|
||
|
#define LOWER 0
|
||
|
#define STEP 20
|
||
|
#define END 200
|
||
|
|
||
|
int main() {
|
||
|
float fahr, celsius;
|
||
|
|
||
|
printf("Fahrenheit\tCelsius\n");
|
||
|
for(fahr = LOWER; fahr <= END; fahr += STEP) {
|
||
|
celsius = (5.0/9.0) * (fahr - 32.0);
|
||
|
printf("%3.1f\t\t%3.1f\n", fahr, celsius);
|
||
|
}
|
||
|
}
|