0

Please help me please 🙏

You have a box of popsicles and you want to give them all away to a group of brothers and sisters. If you have enough left in the box to give them each an even amount you should go for it! If not, they will fight over them, and you should eat them yourself later. Task Given the number of siblings that you are giving popsicles to, determine if you can give them each an even amount or if you shouldn't mention the popsicles at all. Input Format Two integer values, the first one represents the number of siblings, and the second one represents the number of popsicles that you have left in the box. Output Format A string that says 'give away' if you are giving them away, or 'eat them yourself' if you will be eating them yourself. Sample Input 3 9 Sample Output give away

15th Sep 2021, 7:59 PM
Sarthak Malhotra
Sarthak Malhotra - avatar
1 Antwort
+ 1
Please, firstly show your attempt. After that, ask what your problem is. Thanks for understanding. Also, you can use these steps to solve: 1- take the numbers of popsicles and siblings as input from the user. (with using input) 2- calculate the remaining of popsicles to siblings. (with using %) 3- use a condition for making a decision like give away. (with using if-else) and print your choice I hope, it helps. Happy coding! https://code.sololearn.com/cdH680Hm1W5r/?ref=app
15th Sep 2021, 9:12 PM
mesarthim
mesarthim - avatar