0
Hey guys I am not able to pass the test case #4 Please help me rectify the problem
4 odpowiedzi
+ 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.
+ 1
It worked, thank you sarada lakshmi
0
Show your code.. So that we can rectify your mistake.
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