first commit!

This commit is contained in:
2025-02-06 12:54:34 +02:00
commit 37f9a3d138
24 changed files with 693 additions and 0 deletions

18
fahrenheittable.c Normal file
View File

@ -0,0 +1,18 @@
#include <stdio.h>
int main() {
double fahr, celcius;
double lower, upper, step;
lower = 0;
upper = 300;
step = 20;
fahr = lower;
printf("%6c %8c\n", 'F', 'C');
while (fahr <= upper) {
celcius = 5.0/9 * (fahr - 32);
printf("%6.2f %8.2f\n", fahr, celcius);
fahr = fahr + step;
}
}