1. sunqiang
  2. tcpl

Commits

sunqiang  committed de19934

mini typo update

  • Participants
  • Parent commits 4eac487
  • Branches default

Comments (0)

Files changed (1)

File ch01/02/04.ex1.3/main.c

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