Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package firstSteps;
- import java.util.Scanner;
- public class P04VacationBooksList {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int countPages = Integer.parseInt(scanner.nextLine());
- int readPagesPerHour = Integer.parseInt(scanner.nextLine());
- int days = Integer.parseInt(scanner.nextLine());
- int totalReadingHours = countPages / readPagesPerHour;
- int hoursPerDay = totalReadingHours / days;
- System.out.println(hoursPerDay);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement