From 49612a98815548abe16ede59cf36ca8c29303f53 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Thu, 18 Oct 2012 00:00:36 -0400 Subject: [PATCH] Minor touchup to height conversion prog --- d/prog-lang-book/src/height_conversions.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }