dmath: init directory
This commit is contained in:
parent
afa80b0937
commit
84bf83a36b
7 changed files with 200 additions and 0 deletions
15
dmath/lcm.d
Normal file
15
dmath/lcm.d
Normal file
|
@ -0,0 +1,15 @@
|
|||
import std.conv : to;
|
||||
import std.stdio : writeln;
|
||||
|
||||
void
|
||||
main(string[] args)
|
||||
{
|
||||
int x, y;
|
||||
|
||||
x = args[1].to!int();
|
||||
y = args[2].to!int();
|
||||
|
||||
foreach (int i; 1 .. 12) {
|
||||
writeln(x * i, " ", y * i);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue