Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace SeriesCalculator
- {
- class Program
- {
- static void Main(string[] args)
- {
- string serial = Console.ReadLine();
- int season = int.Parse(Console.ReadLine());
- int volume = int.Parse(Console.ReadLine());
- double time = double.Parse(Console.ReadLine());
- double minutes = season * volume * time * 1.2 + season * 10;
- Console.WriteLine($"Total time needed to watch the {serial} series is {Math.Floor(minutes)} minutes.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement