16 lines
447 B
D
16 lines
447 B
D
import std.stdio;
|
|
|
|
void main()
|
|
{
|
|
// Значения, которые никогда не изменятся
|
|
immutable inchesPerFoot = 12;
|
|
immutable cmPerInch = 2.54;
|
|
// Перебираем и пишем
|
|
foreach (feet; 5 .. 7)
|
|
{
|
|
foreach (inches; 0 .. inchesPerFoot)
|
|
{
|
|
writeln(feet, "'", inches, "''\t", (feet * inchesPerFoot + inches) * cmPerInch);
|
|
}
|
|
}
|
|
}
|