base fahceltable

This commit is contained in:
kevinnlsamuel committed 2026-11-21 14:11:35 +05:30
1 parent 8a7de4bef2
commit 5eeec57451
1 file changed
+10
+10
View File
@@ -1,4 +1,14 @@
#include <stdio.h> #include <stdio.h>
int main(){ 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);
}
} }