SHARE
TWEET

Untitled

a guest Dec 8th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             //Input
  14.             double decorationPrice = double.Parse(Console.ReadLine());
  15.  
  16.             //Calculations
  17.             double pizza = decorationPrice * 2;
  18.             double Drinks = pizza * 0.85;
  19.  
  20.             double pizzaanddrinks = pizza + Drinks;
  21.  
  22.             double bordGames = pizzaanddrinks * (0.1428571428571429);
  23.  
  24.             Console.WriteLine($"{bordGames + pizza + Drinks + decorationPrice:f2}");
  25.  
  26.  
  27.         }
  28.     }
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top