From 3dac05767bd6f3fb324722b9104fb933fd7d6019 Mon Sep 17 00:00:00 2001 From: Brian Rogers Date: Wed, 1 May 2024 14:58:48 -0600 Subject: [PATCH] adding degree symbol and measurement symbol to temps in table --- chapter-01/temperature-io/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter-01/temperature-io/main.c b/chapter-01/temperature-io/main.c index 799ea95..51625b6 100644 --- a/chapter-01/temperature-io/main.c +++ b/chapter-01/temperature-io/main.c @@ -12,7 +12,7 @@ int main() tModifier = (5.0/9.0); while (fahr <= UPPER) { celsius = tModifier * (fahr - 32.0); - printf("%3.0f\t%5.1f\n", fahr, celsius); + printf("%3.0f°F\t%5.1f°C\n", fahr, celsius); fahr = fahr + STEP; } }