June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
30
Task/Multifactorial/Aime/multifactorial.aime
Normal file
30
Task/Multifactorial/Aime/multifactorial.aime
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
integer
|
||||
mf(integer a, integer n)
|
||||
{
|
||||
integer o;
|
||||
|
||||
o = 1;
|
||||
do {
|
||||
o *= a;
|
||||
} while (0 < (a -= n));
|
||||
|
||||
return o;
|
||||
}
|
||||
|
||||
integer
|
||||
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");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue