добавлен исходный код и ссылки

This commit is contained in:
Alexander Zhirov 2023-01-22 15:43:59 +03:00
parent c83ed6cf42
commit 4be7b9c4ce
15 changed files with 438 additions and 1 deletions

View file

@ -0,0 +1,16 @@
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);
}
}
}