Advertisement
Spocoman

04. Vacation Books List

Aug 19th, 2024
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class VacationBooksList {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.         int pages = Integer.parseInt(scanner.nextLine());
  7.         int pagesPerHour = Integer.parseInt(scanner.nextLine());
  8.         int daysToRead = Integer.parseInt(scanner.nextLine());
  9.  
  10.         int hoursPerDay = pages / pagesPerHour / daysToRead;
  11.  
  12.         System.out.println(hoursPerDay);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement