From 5eeec574514e51a7f5aa11f087b66a27fcd640e4 Mon Sep 17 00:00:00 2001 From: kevinnls Date: Sat, 21 Nov 2026 14:11:35 +0530 Subject: [PATCH] base fahceltable --- chapter01/fahceltable.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); + } }