Help!! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Help!!

I need help I’ve tried everything, here is the question Today is a holiday at the children's camp, so all the children will be served ice cream. There are 3 groups of children: 23 children in the first group, 27 in the second, and 18 in the third. Every child should get 2 scoops of ice cream. Write a program to calculate and output the total number of ice cream scoops we need. https://code.sololearn.com/chNmmBo3GuPp/?ref=app Can someone help and explain to me?

22nd Feb 2021, 2:16 PM
Gabriel Reyna
4 Answers
+ 3
Dimon Gaming reported you . You have been here for a long but i think you never cared to look at what type of platform you are at.
22nd Feb 2021, 2:57 PM
Abhay
Abhay - avatar
+ 2
you should just sum all children counts to get total children and then multiply by number of scoops for each children ^^
22nd Feb 2021, 2:23 PM
visph
visph - avatar
+ 2
I think, is it not "total number of students * 2 "? Rethink again...... Every student should get 2 ice scoops .
22nd Feb 2021, 2:23 PM
Jayakrishna 🇮🇳
0
Your code had some errors, here is my attempt You need to first add up the number of children and then multiply it by 2; simple isn't it! https://code.sololearn.com/cv8QnVJ882y8/?ref=app
22nd Feb 2021, 2:38 PM
∆BH∆Y
∆BH∆Y - avatar