Advertisement
Guest User

Torrent Pirate

a guest
Mar 30th, 2015
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 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 ConsoleApplication3
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. decimal megabytes = decimal.Parse(Console.ReadLine());
  14. decimal cinemaMoney = decimal.Parse(Console.ReadLine());
  15. decimal wifeMoneyPerHour = decimal.Parse(Console.ReadLine());
  16.  
  17. decimal downloadTime = (((megabytes / 2m) / 60m) / 60m);
  18. decimal priceForDownload = downloadTime * wifeMoneyPerHour;
  19. decimal numberOfMovies = megabytes / 1500m;
  20. decimal cinemaPrice = numberOfMovies * cinemaMoney;
  21.  
  22. if (cinemaPrice > priceForDownload)
  23. {
  24. Console.WriteLine("mall -> {0:F2}lv", priceForDownload);
  25. }
  26. else if (cinemaPrice < priceForDownload)
  27. {
  28. Console.WriteLine("cinema -> {0:F2}lv", cinemaPrice);
  29. }
  30. else
  31. {
  32. Console.WriteLine("mall -> {0:F2}lv", priceForDownload);
  33. }
  34. }
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement