Advertisement
Spocoman

Series Calculator

Nov 27th, 2021
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1. using System;
  2.  
  3. namespace SeriesCalculator
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string serial = Console.ReadLine();
  10.             int season = int.Parse(Console.ReadLine());
  11.             int volume = int.Parse(Console.ReadLine());
  12.             double time = double.Parse(Console.ReadLine());
  13.  
  14.             double minutes = season * volume * time * 1.2 + season * 10;
  15.  
  16.             Console.WriteLine($"Total time needed to watch the {serial} series is {Math.Floor(minutes)} minutes.");
  17.         }
  18.     }
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement