Count the coins: Difference between revisions
m
→{{header|EasyLang}}
Line 1,202:
len cache[] 100000 * 7 + 6
val[] = [ 1 5 10 25 50 100 ]
proc
if sum = 0
r = 1
elif sum < 0 or kind = 0
r = 0
r = cache[sum * 7 + kind]▼
else
cache[chind] = r1 + r2
.
.
.
call
print r
call
print r</syntaxhighlight>
=={{header|EchoLisp}}==
|