Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace TorrentPirat
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. double totalMB = double.Parse(Console.ReadLine());
  14. double cinema = double.Parse(Console.ReadLine());
  15. double mPerHour = double.Parse(Console.ReadLine());
  16.  
  17.  
  18. double downloadTime=(double)((totalMB)/(2)/(60)/(60));
  19. double priceForDown = (double)(downloadTime * mPerHour);
  20. double cinemaPrice = (double)(totalMB / 1500)*(cinema);
  21.  
  22. if(priceForDown<=cinemaPrice)
  23. {
  24. Console.WriteLine("mall -> {0:F2}", priceForDown);
  25. }
  26. else
  27. {
  28. Console.WriteLine("cinema -> {0:F2}", cinemaPrice);
  29. }
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement