DEV Community

Ivan Ivanov
Ivan Ivanov

Posted on • Edited on

4. Vacation Book List

using System;

namespace VacationBooksList
{
internal class Program
{
    static void Main(string[] args)
    {
        int pageNum = int.Parse(Console.ReadLine());
        int page = int.Parse(Console.ReadLine());
        int countDays = int.Parse(Console.ReadLine());

        int totalReadingHour = pageNum / page;
        int neededHours = totalReadingHour / countDays;


        Console.WriteLine(neededHours);
    }
}
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)