Minor touchup to height conversion prog
This commit is contained in:
parent
8f31e77e96
commit
49612a9881
@ -12,7 +12,7 @@ void main() {
|
|||||||
// Loop'n write
|
// Loop'n write
|
||||||
foreach (feet; 5 .. 7) {
|
foreach (feet; 5 .. 7) {
|
||||||
foreach (inches; 0 .. inchesPerFoot) {
|
foreach (inches; 0 .. inchesPerFoot) {
|
||||||
writeln(feet, "'", inches, "''\t",
|
writefln("%s'%s''\t%s", feet, inches,
|
||||||
(feet * inchesPerFoot + inches) * cmPerInch);
|
(feet * inchesPerFoot + inches) * cmPerInch);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user