Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace softuni1
- {
- class Program
- {
- static void Main(string[] args)
- {
- //input
- int bookPages = int.Parse(Console.ReadLine());
- double hpages = double.Parse(Console.ReadLine());
- int days = int.Parse(Console.ReadLine());
- //calculation
- double time = bookPages / hpages;
- double hoursInDay = time / days;
- Console.WriteLine(hoursInDay);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement