Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 1; i <= amountDays; i++) {
- int dogFood = Integer.parseInt(scanner.nextLine());
- int catFood = Integer.parseInt(scanner.nextLine());
- dogFoodEaten += dogFood;
- catFoodEaten += catFood;
- if(i % 3 ==0){
- biscuits += (dogFood + catFood) * 0.10;
- }
- }
- totalFoodEaten = (dogFoodEaten + catFoodEaten) / totalFood;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement