Commits

sunqiang  committed fa5ef51

mini typo update

  • Participants
  • Parent commits de19934

Comments (0)

Files changed (1)

File ch01/02/05.ex1.4/main.c

     step = 20.;  // step size
 
     celsius  = lower;
-    printf("  C          F\n"
-           "==============\n");
+    printf("  C      F\n"
+           "==========\n");
     while (celsius <= upper) {
         fahr = 9. / 5. * celsius + 32.;
-        printf("%3.0f\t%6.1f\n", celsius, fahr);
+        printf("%3.0f %6.1f\n", celsius, fahr);
         celsius += step;
     }