Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace OscarsCeremony
- {
- class Program
- {
- static void Main(string[] args)
- {
- int rent = int.Parse(Console.ReadLine());
- double statuettes = rent * 0.7;
- double removal = statuettes * 0.85;
- double sound = removal / 2;
- double totalPrice = rent + statuettes + removal + sound;
- Console.WriteLine($"{totalPrice:f2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement