From 34b2fa78c7461d5e4c5cb9119c5f33a3c9c4cd0e Mon Sep 17 00:00:00 2001 From: celso Date: Sat, 5 Nov 2022 17:51:25 -0300 Subject: [PATCH] fifth exercise --- 1-5.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 1-5.c diff --git a/1-5.c b/1-5.c new file mode 100644 index 0000000..bd4d8b1 --- /dev/null +++ b/1-5.c @@ -0,0 +1,8 @@ +#include +int main(){ + int fahr; + for (fahr=300; fahr>=0; fahr-=20){ + printf("%3d %6.1f\n", fahr, (5.0/9.0)*(fahr-32)); + } + return 0; +}