diff --git a/d/prog-lang-book/src/height_conversions.d b/d/prog-lang-book/src/height_conversions.d index 63dbbda..0269690 100644 --- a/d/prog-lang-book/src/height_conversions.d +++ b/d/prog-lang-book/src/height_conversions.d @@ -12,7 +12,7 @@ void main() { // Loop'n write foreach (feet; 5 .. 7) { foreach (inches; 0 .. inchesPerFoot) { - writeln(feet, "'", inches, "''\t", + writefln("%s'%s''\t%s", feet, inches, (feet * inchesPerFoot + inches) * cmPerInch); } }