0
Why is it not working?
Please help me fixing the bug:- import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int siblings = input.nextInt(); int popsicles = input.nextInt(); if(popsicles % siblings == 0){ System.out.println("Give away"); } else { System.out.println("eat them yourself"); } } }
2 Answers
+ 1
Code Coach is case-sensitive. In this task it is looking for all lowercase output. Change "Give away" to "give away".
+ 3
Thanks Brian..it worked