What is wrong with the following code? How can you fix it?
int pizzas = 4; int hungryPeople = 8; System.out.println("Each person gets " + pizzas/hungryPeople + " pizzas.");
Hint: what is the output of the print statement? What should it be?
College of Computing Learning Center
What is wrong with the following code? How can you fix it?
int pizzas = 4; int hungryPeople = 8; System.out.println("Each person gets " + pizzas/hungryPeople + " pizzas.");
Hint: what is the output of the print statement? What should it be?