diff --git a/KNR C/a.out b/KNR C/a.out index 214b95d..6867d4c 100755 Binary files a/KNR C/a.out and b/KNR C/a.out differ diff --git a/KNR C/ex1_1-tempconverter.c b/KNR C/ex1_1-tempconverter.c index 0157faf..03d7958 100644 --- a/KNR C/ex1_1-tempconverter.c +++ b/KNR C/ex1_1-tempconverter.c @@ -13,10 +13,15 @@ int main() step = 20; /* step size between calculated conversions*/ fahr = lower; + + + printf("Temperature conversion table with 20-degree^f steps. \n"); + printf("%4s\t%6s\n", "DegF", "DegC"); + while (fahr <= upper) { celsius = (5.0/9.0) * (fahr-32); - printf("%3.0f\t%6.1f\n", fahr, celsius); + printf("%4.0f\t%6.1f\n", fahr, celsius); fahr = fahr + step; } return 0;