' and 1 for the monkey problem SB.txt rev for SB.exe 'from' and 1 for the monkey problem.bas for JB 2.0 b 2018-02-11' test string new string array functions > and <n start 100. i (bluatigro) fount this puzle in a book:. there are 5 person's + 1 monkey. they shipwrek on a Island. the fisrst day they colect kokonut's.. day 1:". I (bplus) am starting with a number of coconuts.n cc startdim pile(5) this is why we need string array! for 5 piles. Say the coconuts collected by the people is start ... in the night happens this:. (each) person goes to the pile. divides it in 5 hides 1/5. and gives 1 to the monkey.. I (bplus) am paying the monkey first.. I (bplus) am not cutting any coconuts into parts of coconuts... So Coconut inventory after first night:[ n persn persn + 1 i persn > 5 x f n cc cc - 1 n monk monk + 1 > piel persn int(cc/5) n cc cc - int(cc/5) < p piel persn . For person persn , their pile is p]. and monkey has monk.. day 2". the 2e day". thay divide the remaining pile in 5". and give 1 to the monkey". now calc the size of every pile".. Coconuts starting day 2, before final divvy is ccn cc cc - 1 n monk monk + 1 n divee int(cc/5). After monkey gets one more coconut the divvy is divee.n persn 1[ < p piel persn n p p + divee > piel persn p n persn persn +1 i persn > 5 x f]n Remain startn persn 1[ < p piel persn . For person persn , their pile is p n Remain Remain - p n persn persn + 1 i persn > 5 x f]. The monkey has monk coconuts.n Remain Remain - monk.. Coconuts remaining are Remain for the monkey who programmed this inventory.

My first attempt in SmallBasic.

My first attempt in SmallBasic.I am having some funny display problems. When I run this on ver 12.14 and 12.20 SDL at the end a line seems to always come up missing in my tests.Trial 3897 (the left most number) is always missing. Is there a way to make sure that all print lines are displayed?Is there a way to scroll up/down in the output (the mouse and page keys don't seem to work)?Thanks

What is the minimum number of coconuts the explorers had to pick the day before?(The first trick is to realize that you can't split a coconut five ways.)

what i have is a flying monkey so i am wondering maybe you can made something similar in SB

Again I ask, "What is the minimum number of coconuts the explorers had to pick the day before?"to do what? Maybe for each explorer to leave with at least 1 coconut (total picked around 10) each explorer to have at least 10 coconuts? (Then it's closer to 100).

i (bluatigro) fount this puzle in a book : there are 5 person's + 1 monkey they shipwrek on a Island the fisrst day they colect kokonut'sday 1:I (bplus) am starting with a number of coconuts.Say the coconuts collected by the people is 17. in the night happens this : eats (each) person goes to the pile divides it in 5 hides 1/5 and gives 1 to the monkeyI (bplus) am paying the monkey first.I (bplus) am not cutting any coconuts into parts of coconuts.So Coconut inventory after first night:For person 1, their pile is 3For person 2, their pile is 2For person 3, their pile is 1For person 4, their pile is 1For person 5, their pile is 1 and monkey has 5day 2 the 2e day thay divide the remaining pile in 5 and give 1 to the monkey now calc the size of every pileCoconuts starting day 2, before final divy is 4after monkey gets one more coconut the divy is 0For person 1, their pile is 3For person 2, their pile is 2For person 3, their pile is 1For person 4, their pile is 1For person 5, their pile is 1The monkey has 6 coconuts.Coconuts remaining are 3 for the monkey who programmed this inventory.

i (bluatigro) fount this puzle in a book : there are 5 person's + 1 monkey they shipwrek on a Island the fisrst day they colect kokonut'sday 1:I (bplus) am starting with a number of coconuts.Say the coconuts collected by the people is 22. in the night happens this : eats (each) person goes to the pile divides it in 5 hides 1/5 and gives 1 to the monkeyI (bplus) am paying the monkey first.I (bplus) am not cutting any coconuts into parts of coconuts.So Coconut inventory after first night:For person 1, their pile is 4For person 2, their pile is 3For person 3, their pile is 2For person 4, their pile is 1For person 5, their pile is 1 and monkey has 5day 2 the 2e day thay divide the remaining pile in 5 and give 1 to the monkey now calc the size of every pileCoconuts starting day 2, before final divy is 6after monkey gets one more coconut the divy is 1For person 1, their pile is 5For person 2, their pile is 4For person 3, their pile is 3For person 4, their pile is 2For person 5, their pile is 2The monkey has 6 coconuts.Coconuts remaining are 0 for the monkey who programmed this inventory.

Yo ....you hit me with coconut in head.. String literals..wahat is that ? You mean string variable ?yes you can