Advertisement
tsvetelinapasheva

TsvetelinaPasheva/FirstStepInCodingExercise/04.VacationBooksList

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