move dmath, dsafe and nixctor to snippets/ directory

This commit is contained in:
Jeremy Baxter 2024-04-10 13:06:39 +12:00
parent 43b30424b1
commit 625968bef3
13 changed files with 0 additions and 0 deletions

15
snippets/dmath/lcm.d Normal file
View 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);
}
}