RosettaCodeData/Task/McNuggets-problem/EasyLang/mcnuggets-problem.easy

13 lines
216 B
Text
Raw Permalink Normal View History

2023-12-16 21:33:55 -08:00
len l[] 100
2026-02-01 16:33:20 -08:00
for a = 0 step 6 to 100
for b = 0 step 9 to 100
for c = 0 step 20 to 100
n = a + b + c
if n >= 1 and n <= 100 : l[n] = 1
2023-12-16 21:33:55 -08:00
.
.
.
2026-02-01 16:33:20 -08:00
n = 100
while l[n] <> 0 : n -= 1
print n