0
what is mistake in this code
#include <stdio.h> int main() { int siblings, popsicles; scanf("%d", &siblings); scanf("%d", &popsicles); //your code goes here if (popsicles%siblings==0) printf ("giveaway"); { else { printf {"eat yourself"}; } } }
3 ответов
+ 3
#include <stdio.h>
int main()
{
int siblings, popsicles;
scanf("%d", &siblings);
scanf("%d", &popsicles);
//your code goes here
if (popsicles%siblings==0){
printf ("giveaway");
}
else{
printf("eat yourself");
}
}
0
if (popsicles%siblings==0)
{
printf ("giveaway");
}
else
{
printf {"eat yourself"};
}
Try this
0
Wrong use of braces.
#include <stdio.h>
int main()
{
int siblings, popsicles;
scanf("%d", &siblings);
scanf("%d", &popsicles);
//your code goes here
if (popsicles%siblings==0)
printf ("giveaway");
else
printf("eat yourself");
}