Перенос страниц

This commit is contained in:
Alexander Zhirov 2023-03-05 15:30:34 +03:00
parent 4d57446057
commit 4c954c9186
129 changed files with 14 additions and 15 deletions

View file

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