Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
28
Task/Multifactorial/Aime/multifactorial.aime
Normal file
28
Task/Multifactorial/Aime/multifactorial.aime
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
mf(integer a, n)
|
||||
{
|
||||
integer o;
|
||||
|
||||
o = 1;
|
||||
do {
|
||||
o *= a;
|
||||
} while (0 < (a -= n));
|
||||
|
||||
o;
|
||||
}
|
||||
|
||||
main(void)
|
||||
{
|
||||
integer i, j;
|
||||
|
||||
i = 0;
|
||||
while ((i += 1) <= 5) {
|
||||
o_("degree ", i, ":");
|
||||
j = 0;
|
||||
while ((j += 1) <= 10) {
|
||||
o_("\t", mf(j, i));
|
||||
}
|
||||
o_("\n");
|
||||
}
|
||||
|
||||
0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue