Advertisement
dragonbs

VacationBookList

Sep 15th, 2022
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _04.VacationBooksList
  4. {
  5.     internal class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int pages = int.Parse(Console.ReadLine());
  10.             int pagePerHour = int.Parse(Console.ReadLine());
  11.             int days = int.Parse(Console.ReadLine());
  12.  
  13.             int totalHours = pages / pagePerHour;
  14.             int hoursPerDay = totalHours / days;
  15.  
  16.             Console.WriteLine(hoursPerDay);
  17.         }
  18.     }
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement