Advertisement
Valantina

OscarsCeremony/EX

Jun 14th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. using System;
  2.  
  3. namespace OscarsCeremony
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int rent = int.Parse(Console.ReadLine());
  10.             double statuettes = rent * 0.7;
  11.             double removal = statuettes * 0.85;
  12.             double sound = removal / 2;
  13.             double totalPrice = rent + statuettes + removal + sound;
  14.             Console.WriteLine($"{totalPrice:f2}");
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement