Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
27
Task/Function-composition/LOLCODE/function-composition.lol
Normal file
27
Task/Function-composition/LOLCODE/function-composition.lol
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
HAI 1.3
|
||||
|
||||
I HAS A fx, I HAS A gx
|
||||
|
||||
HOW IZ I composin YR f AN YR g
|
||||
fx R f, gx R g
|
||||
HOW IZ I composed YR x
|
||||
FOUND YR I IZ fx YR I IZ gx YR x MKAY MKAY
|
||||
IF U SAY SO
|
||||
FOUND YR composed
|
||||
IF U SAY SO
|
||||
|
||||
HOW IZ I incin YR num
|
||||
FOUND YR SUM OF num AN 1
|
||||
IF U SAY SO
|
||||
|
||||
HOW IZ I sqrin YR num
|
||||
FOUND YR PRODUKT OF num AN num
|
||||
IF U SAY SO
|
||||
|
||||
I HAS A incsqrin ITZ I IZ composin YR incin AN YR sqrin MKAY
|
||||
VISIBLE I IZ incsqrin YR 10 MKAY BTW, prints 101
|
||||
|
||||
I HAS A sqrincin ITZ I IZ composin YR sqrin AN YR incin MKAY
|
||||
VISIBLE I IZ sqrincin YR 10 MKAY BTW, prints 121
|
||||
|
||||
KTHXBYE
|
||||
Loading…
Add table
Add a link
Reference in a new issue