mirror of
https://github.com/FraMecca/Buridans_donkey.git
synced 2024-03-20 11:20:15 +01:00
start counting from 1
This commit is contained in:
parent
508ca5c0a9
commit
f848a80ce2
1 changed files with 2 additions and 2 deletions
4
asino.d
4
asino.d
|
@ -22,7 +22,7 @@ extern(C)
|
||||||
|
|
||||||
string versionSt = "...a man, being just as hungry as thirsty,
|
string versionSt = "...a man, being just as hungry as thirsty,
|
||||||
and placed in between food and drink,
|
and placed in between food and drink,
|
||||||
must necessarily remain where he is and starve to death.
|
must necessarily remain where he is and starve to death
|
||||||
|
|
||||||
Aristole";
|
Aristole";
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ main (string[] args)
|
||||||
|
|
||||||
foreach (i, arg; res) {
|
foreach (i, arg; res) {
|
||||||
if (!num) writeln(arg);
|
if (!num) writeln(arg);
|
||||||
else writefln("%s: %s", i, arg);
|
else writefln("%s: %s", i + 1, arg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue