Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace TorrentPirat
- {
- class Program
- {
- static void Main(string[] args)
- {
- double totalMB = double.Parse(Console.ReadLine());
- double cinema = double.Parse(Console.ReadLine());
- double mPerHour = double.Parse(Console.ReadLine());
- double downloadTime=(double)((totalMB)/(2)/(60)/(60));
- double priceForDown = (double)(downloadTime * mPerHour);
- double cinemaPrice = (double)(totalMB / 1500)*(cinema);
- if(priceForDown<=cinemaPrice)
- {
- Console.WriteLine("mall -> {0:F2}", priceForDown);
- }
- else
- {
- Console.WriteLine("cinema -> {0:F2}", cinemaPrice);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement