diff --git a/chapter01/fahceltable.c b/chapter01/fahceltable.c index 0a98140..8fd4a63 100644 --- a/chapter01/fahceltable.c +++ b/chapter01/fahceltable.c @@ -1,4 +1,14 @@ #include 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); + } }