Advertisement
hawzze

vacationBooksList_SoftUni

Jul 11th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement