desislava_topuzakova

Untitled

May 9th, 2021
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  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. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment