0

What is wrong in my code?

https://www.sololearn.com/coach/3?ref=app It is my code . I don't know why is it false Please help me, thank you

16th Sep 2021, 3:11 PM
Z.sl
Z.sl - avatar
10 Respuestas
+ 1
Z.sl Look at this, I added what the problem was. Happy coding! https://code.sololearn.com/cBB6leK6nZ63/?ref=app
16th Sep 2021, 6:33 PM
mesarthim
mesarthim - avatar
+ 3
The link you provided is the link to question statement of code coach here on sololearn. Kindly copy paste your code in code playground and share a link to that here.
16th Sep 2021, 3:15 PM
Arsenic
Arsenic - avatar
+ 1
Don't take additional user input and use equality operator instead of assignment
16th Sep 2021, 4:06 PM
Atul
Atul - avatar
+ 1
Can you write it for me, plz?
16th Sep 2021, 5:58 PM
Z.sl
Z.sl - avatar
+ 1
Thank you very much
16th Sep 2021, 7:19 PM
Z.sl
Z.sl - avatar
16th Sep 2021, 3:58 PM
Z.sl
Z.sl - avatar
0
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 cin) 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 (with using cout) I hope, it helps. Happy coding!
16th Sep 2021, 6:07 PM
mesarthim
mesarthim - avatar
0
Thank you, but i did these steps at my code https://code.sololearn.com/c8TXLDVrBgEH/?ref=app That 's my code i tried to fix it but i couldn't
16th Sep 2021, 6:15 PM
Z.sl
Z.sl - avatar
0
I show you little secret, you may use logic ! && and ect. I think if you look deeper and try it you understand my answer
16th Sep 2021, 10:05 PM
Ловли Лав
Ловли Лав - avatar
18th Sep 2021, 8:13 AM
Christian Duah Marfo
Christian Duah Marfo - avatar