Files
c/chapter01/fahceltable.c
T
2026-11-21 14:11:35 +05:30

15 lines
228 B
C

#include <stdio.h>
int main(){
int lowerF, upperF, step;
lowerF = 0; upperF = 300;
step = 20;
int fahr, cel;
for(fahr=lowerF; fahr<=upperF; fahr+=step){
cel = 5 * (fahr - 32) / 9;
printf("%d\t%d\n", fahr, cel);
}
}