Advertisement
veronikaaa86

04. Vacation Books List

Jan 9th, 2022
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class P04VacationBooksList {
  4. public static void main(String[] args) {
  5. Scanner scanner = new Scanner(System.in);
  6.  
  7. int countPages = Integer.parseInt(scanner.nextLine());
  8. int readPagesPerHour = Integer.parseInt(scanner.nextLine());
  9. int days = Integer.parseInt(scanner.nextLine());
  10.  
  11. int totalHours = countPages / readPagesPerHour;
  12.  
  13. int hoursPerDay = totalHours / days;
  14.  
  15. System.out.println(hoursPerDay);
  16. }
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement