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 rent = double.Parse(Console.ReadLine());
- double cake = rent * 0.20;
- double drinks = cake - (cake * 0.45);
- double animator = rent / 3;
- double neededSum = rent + cake + drinks + animator;
- Console.WriteLine(neededSum);
- }
- }
- }
Add Comment
Please, Sign In to add comment