Advertisement
sanyakasarova

01. Oscars Ceremony

Dec 11th, 2021
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. using System;
  2. using System.Threading;
  3.  
  4. class Program
  5. {
  6. static void Main()
  7. {
  8. int rent = int.Parse(Console.ReadLine());
  9.  
  10.  
  11. double statues = rent * 0.70;
  12. double catering = statues - statues * 0.15;
  13. double audio = catering * 0.5;
  14.  
  15. double total = rent + statues + catering + audio;
  16. Console.WriteLine($"{total:f2}");
  17.  
  18. }
  19.  
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement