0

Hey guys I am not able to pass the test case #4 Please help me rectify the problem

https://www.sololearn.com/discuss/2791837/?ref=app

22nd May 2021, 9:40 AM
Katariya Avinash Jain
4 Réponses
+ 1
No need of the condition popsicles/siblings. #include <stdio.h> int main() { int siblings, popsicles; scanf("%d", &siblings); scanf("%d", &popsicles); //your code goes here if (popsicles % siblings ==0) printf ("give away"); else printf ("eat them yourself"); return 0; } This is enough.
22nd May 2021, 9:50 AM
sarada lakshmi
sarada lakshmi - avatar
+ 1
It worked, thank you sarada lakshmi
22nd May 2021, 9:52 AM
Katariya Avinash Jain
0
Show your code.. So that we can rectify your mistake.
22nd May 2021, 9:43 AM
sarada lakshmi
sarada lakshmi - avatar
0
#include <stdio.h> int main() { int siblings, popsicles; scanf("%d", &siblings); scanf("%d", &popsicles); //your code goes here if (popsicles / siblings ==0) printf ("give away"); else if (popsicles % siblings ==0) printf ("give away"); else printf ("eat them yourself"); return 0; } sarada lakshmi
22nd May 2021, 9:47 AM
Katariya Avinash Jain