Advertisement
veronikaaa86

04. Vacation Books List

Jun 7th, 2021
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 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 totalReadingHours = countPages / readPagesPerHour;//10
  12. int hoursPerDay = totalReadingHours / days;
  13.  
  14. System.out.println(hoursPerDay);
  15. }
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement