0
Please guys i need your help in code coach popsicles i only surpassed case 1
#include <stdio.h> int main() { int siblings = 3; int popsicles = 9; scanf("%d", &siblings); scanf("%d", &popsicles ); if ( popsicles / siblings == 0) printf ("give away"); else printf ("eat them yourself"); return 0; }
2 odpowiedzi
+ 1
You need to use modulo operator % to get the reminder of a division.
+ 1
pops%sibl==0