From 0893987235ce02329c87ea000fb97eb0688bea54 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Wed, 3 Nov 2021 02:34:51 -0400 Subject: [PATCH] Exercise 1-3. print a heading above the table --- 02-vars-and-math.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/02-vars-and-math.c b/02-vars-and-math.c index 1faca06..4cb0c65 100644 --- a/02-vars-and-math.c +++ b/02-vars-and-math.c @@ -5,6 +5,7 @@ int main() { int fahr; + printf("Fahrenheit\tCelsius\n=======================\n"); for (fahr = 0; fahr <= 300; fahr = fahr + 20) - printf("%3d %6.1f\n", fahr, (5.0/9.0)*(fahr-32)); + printf("%3d\t\t%7.1f\n", fahr, (5.0/9.0)*(fahr-32)); }