+ 2
How do u get to see more sololearn popsicle questions to solve at my solutions tab
5 odpowiedzi
+ 5
Adeyanju Sunmola go to the learn section scroll down to the section that reads code coach and you will see the other 24 problems available for free members...
Thanks and happy coding
+ 3
ThanksBroFar
+ 3
Justus Would you like to tell me more about them?
+ 2
There are other challenges not only popsicle
+ 1
import java.util.Scanner;
public class Program
{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int siblings = input.nextInt();
int popsicles = input.nextInt();
int temp = popsicles%2;
if (siblings <= popsicles ){
if (temp == 0) {
System.out.println("give away");
}
else {
System.out.println("eat them yourself");
}
}
if (siblings > popsicles ){
if (siblings % popsicles == 0) {
System.out.println("give away");
}
else {
System.out.println("eat them yourself");
}
}
}
}