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; }

12th Mar 2022, 8:47 AM
MR KINGSHOW
MR KINGSHOW - avatar
2 Respostas
+ 1
You need to use modulo operator % to get the reminder of a division.
12th Mar 2022, 9:16 AM
Simba
Simba - avatar
+ 1
pops%sibl==0
12th Mar 2022, 9:17 AM
Shadoff
Shadoff - avatar