Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- //Input
- double decorationPrice = double.Parse(Console.ReadLine());
- //Calculations
- double pizza = decorationPrice * 2;
- double Drinks = pizza * 0.85;
- double pizzaanddrinks = pizza + Drinks;
- double bordGames = pizzaanddrinks * (0.1428571428571429);
- Console.WriteLine($"{bordGames + pizza + Drinks + decorationPrice:f2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement