c-first-steps

a C playground
Index Commits Files Refs README
commit 693786dd1c66ddeeee305b2f01561db18baa5831
parent d4e5120114c3a005f8f96e2e3327e6950868b1af
Author: Martin J. Klöckner <martin.cachari@gmail.com>
Date:   Sun,  8 Nov 2020 00:24:52 -0300

Update: 'Degree Converter' source code.

Diffstat:
Msrc/dc.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/dc.c b/src/dc.c
@@ -27,13 +27,13 @@ void title(int i)
     printf(
         "---------------------------------------\n"
         "---------------------------------------\n"
-        "--- FAHRENHEIT TO CELSIUS CONVERTER ---\n"
+        "--- %s TO %s CONVERTER ---\n"
         "---------------------------------------\n"
         "---      to exit press Ctrl+D      ----\n"
         "---------------------------------------\n"
         "---------------------------------------\n",
-        i ? "FAHRENHEIT" : "CELSIUS",
-        i ? "CELSIUS" : "FAHRENHEIT"
+        i ? "CELSIUS" : "FAHRENHEIT",
+        i ? "FAHRENHEIT" : "CELSIUS"
     );
 }