deyanivanov966

04. Vacation Books List

Aug 21st, 2020 (edited)
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class VacationBooksList {
  4.  
  5.     public static void main(String[] args) {
  6.         Scanner scanner = new Scanner (System.in);
  7.  
  8.         int BookPage= Integer.parseInt(scanner.nextLine());
  9.         int HourPage= Integer.parseInt(scanner.nextLine());
  10.         int BookDays= Integer.parseInt(scanner.nextLine());
  11.  
  12.         int AllTime = BookPage / HourPage;
  13.         int HoursDay = AllTime / BookDays;
  14.  
  15.         System.out.println(HoursDay);
  16.     }
  17. }
Add Comment
Please, Sign In to add comment