Advertisement
deyanivanov966

04. Vacation books list

Apr 6th, 2021
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Nums1_10
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double numberPages = double.Parse(Console.ReadLine());
  10.             double pagesPerhour = double.Parse(Console.ReadLine());
  11.             double numberDays = double.Parse(Console.ReadLine());
  12.  
  13.             double bookTimeReading = numberPages / pagesPerhour;
  14.             double hoursPerDay = bookTimeReading / numberDays;
  15.  
  16.             Console.WriteLine(hoursPerDay);
  17.  
  18.  
  19.         }
  20.     }
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement