Popsicles query error. If 2 siblings are there and I have 5 popsicles then I should give them away... But compiler showing eatem
You have a box of pop 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 pop at all. Input Format Two integer values, the first one represents the number of siblings, and the second one represents the number of pop 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. ****** So when compiler is checking 2 siblings 5 popsicles, I think output should be give them... But compiler showing output should be eat them all... Am I not getting something or compilers answer is wrong please tell. Code is in c++ https://code.sololearn.com/cUFd55IWQh69/?ref=app