+ 1

Popsicles

I need help i can't found code

5th Oct 2020, 6:08 PM
Atalay Osmanoğlu
Atalay Osmanoğlu - avatar
5 Antworten
+ 8
s = int(input()) p = int(input()) if p%s == 0: print("give away") else: print("eat them yourself") this ???? is this a code coach question?
5th Oct 2020, 6:54 PM
Roderick Davis
Roderick Davis - avatar
+ 6
Write your problem in details to help u
5th Oct 2020, 6:25 PM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 2
Thank you very much Roderick Davis finally I passed thank you again
5th Oct 2020, 7:26 PM
Atalay Osmanoğlu
Atalay Osmanoğlu - avatar
+ 1
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
5th Oct 2020, 7:20 PM
Atalay Osmanoğlu
Atalay Osmanoğlu - avatar
0
Thxs
10th Feb 2022, 9:49 PM
aldnr lcldkkr
aldnr lcldkkr - avatar