Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _05.BirthdayParty
- {
- class Program
- {
- static void Main(string[] args)
- {
- double hallPrice = double.Parse(Console.ReadLine());
- double cakePrice = 0.2 * hallPrice;
- double drinksPrice = cakePrice - 0.45 * cakePrice; // cakePrice * 0.55
- double animatorPrice = hallPrice / 3;
- double totalSum = hallPrice + cakePrice + drinksPrice + animatorPrice;
- Console.WriteLine(totalSum);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement