hawzze

vacationBooksList_SoftUni

Jul 11th, 2020
59
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace softuni1
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             //input
  10.             int bookPages = int.Parse(Console.ReadLine());
  11.             double hpages = double.Parse(Console.ReadLine());
  12.             int days = int.Parse(Console.ReadLine());
  13.  
  14.             //calculation
  15.             double time = bookPages / hpages;
  16.             double hoursInDay = time / days;
  17.  
  18.             Console.WriteLine(hoursInDay);
  19.  
  20.         }
  21.  
  22.     }
  23. }
RAW Paste Data