kalin729

Vacations Book List

Mar 7th, 2021 (edited)
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. package com.company;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Main2 {
  6.  
  7.     public static void main(String[] args) {
  8.         Scanner s = new Scanner(System.in);
  9.  
  10.         int pagesInBook = Integer.parseInt(s.nextLine());
  11.         int pages = Integer.parseInt(s.nextLine());
  12.         int days = Integer.parseInt(s.nextLine());
  13.  
  14.         int sum = (pagesInBook / pages) / days;
  15.  
  16.         System.out.println(sum);
  17.     }
  18.  
  19. }
Add Comment
Please, Sign In to add comment