Can anyone helps me in popsicles math ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can anyone helps me in popsicles math ?

I just a newbie , i have no ideal about this math Can anyone helps me to solve it ( sr im bad at english )

10th Sep 2021, 4:34 AM
Lê Việt Hoàng
1 Answer
+ 1
The math you want to use is 3 steps : 1. Use a modulo "%" to see if the siblings divide into the popsicles and have leftovers 2. Check if the results of the modulo equal 0 (leftOver == 0). If yes, leftOver == 0 then the popsicles can be given. 3. If no, leftOver doesn't equal 0 then you can't give them away but you'll eat them for yourself
10th Sep 2021, 7:25 AM
Tia
Tia - avatar