Advertisement
M0Hk

Mandatory Literature

Sep 17th, 2023
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | Software | 0 0
  1. using System;
  2.  
  3. namespace firstLesson
  4. {
  5.     internal class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int totalPages = int.Parse(Console.ReadLine());
  10.             int pagesPerHour = int.Parse(Console.ReadLine());
  11.             int readingDays = int.Parse(Console.ReadLine());
  12.  
  13.             int hoursForTheBook = totalPages / pagesPerHour;
  14.             int hoursReadingPeDay = hoursForTheBook / readingDays;
  15.  
  16.             Console.WriteLine(hoursReadingPeDay);
  17.                    
  18.          
  19.  
  20.  
  21.  
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement