Such temperature

This commit is contained in:
Dan Buch 2024-11-30 19:53:05 -05:00
parent 4e7e47dd94
commit 174c101fb1
Signed by: meatballhat
GPG Key ID: A12F782281063434

12
cc4e/fc_2.c Normal file
View File

@ -0,0 +1,12 @@
#include <stdio.h>
#define LOWER 0 /* lower limit of table */
#define UPPER 300 /* upper limit */
#define STEP 20 /* step size */
int main() { /* Fahrenheit-Celsius table */
int fahr;
for (fahr = LOWER; fahr <= UPPER; fahr = fahr + STEP)
printf("%4d %6.1f\n", fahr, (5.0/9.0)*(fahr-32));
}