Advertisement
Spocoman

Oscars ceremony

Nov 24th, 2021
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1. using System;
  2.  
  3. namespace OscarsCeremony
  4. {
  5.     class Program
  6.     {
  7.         static void Main()
  8.         {
  9.             int hallRent = int.Parse(Console.ReadLine());
  10.             double statues = hallRent * 0.7;
  11.             double catering = statues * 0.85;
  12.             double soundSystem = catering / 2;
  13.             double sum = hallRent + statues + catering + soundSystem;
  14.             Console.WriteLine($"{sum:f2}");
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement