Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
21
Task/Multifactorial/AppleScript/multifactorial-1.applescript
Normal file
21
Task/Multifactorial/AppleScript/multifactorial-1.applescript
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
on multifactorial(n, d)
|
||||
set f to 1
|
||||
repeat with n from n to 2 by -d
|
||||
set f to f * n
|
||||
end repeat
|
||||
return f
|
||||
end multifactorial
|
||||
|
||||
on task()
|
||||
set table to ""
|
||||
repeat with degree from 1 to 5
|
||||
set row to linefeed & "Degree " & degree & ":"
|
||||
repeat with n from 1 to 10
|
||||
set row to row & (space & multifactorial(n, degree))
|
||||
end repeat
|
||||
set table to table & row
|
||||
end repeat
|
||||
return table
|
||||
end task
|
||||
|
||||
task()
|
||||
Loading…
Add table
Add a link
Reference in a new issue