Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace FirstStepsInCodding
- {
- class Program
- {
- static void Main(string[] args)
- {
- //вход
- //1.Брой страници в текущата книга – int - pagesOfBook
- //2.Страници за 1 час – double -pagesPerHour
- //3.Броя дни– int - days
- int pagesOfBook = int.Parse(Console.ReadLine());
- double pagesPerHour = double.Parse(Console.ReadLine());
- int days = int.Parse(Console.ReadLine());
- //timeForBook: pagesOfBook/pagesPerHour
- //hoursPerDay: timeForBook/days
- double timeForBook = pagesOfBook / pagesPerHour;
- double hoursPerDay = timeForBook / days;
- //изход: hoursPerDay
- Console.WriteLine(hoursPerDay);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment