0
Popsicles, what is wrong in this code? 3 out of 5 work
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner input = new Scanner(System.in); int popsicles = input.nextInt(); int siblings = input.nextInt(); if(popsicles%siblings==0){ System.out.println ("give away");} else{ System.out.println ("eat them yourself");} //your code goes here } }
2 Réponses
0
Omg, didnt knew that mattered. Thx alot!