desislava_topuzakova

05. Birthday party

May 9th, 2021
508
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace _05.BirthdayParty
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.  
  10.             double hallPrice = double.Parse(Console.ReadLine());
  11.             double cakePrice = 0.2 * hallPrice;
  12.             double drinksPrice = cakePrice - 0.45 * cakePrice; // cakePrice * 0.55
  13.             double animatorPrice = hallPrice / 3;
  14.  
  15.             double totalSum = hallPrice + cakePrice + drinksPrice + animatorPrice;
  16.             Console.WriteLine(totalSum);
  17.  
  18.  
  19.         }
  20.     }
  21. }
RAW Paste Data