From 4bc2b752c41dc9bdcbd037fde9a72a3a1f85792d Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Sat, 13 Jan 2024 11:57:02 -0600 Subject: temp: update comment for printf digit width --- one/temp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/one/temp.c b/one/temp.c index 54c99ba..cbbbc23 100644 --- a/one/temp.c +++ b/one/temp.c @@ -12,7 +12,7 @@ temp() printf("Fahrenheit-Celsius table\n"); for (fahr = UPPER; fahr >= LOWER; fahr -= STEP) { cel = (5.0 / 9.0) * (fahr - 32.0); - /* 3 and 6 characters wide with 1 digit after the dot */ + /* 3 and 6 digits wide with 0 and 1 digits after the dot */ printf("%3.0f %6.1f\n", fahr, cel); } -- cgit v1.2.3