Spocoman

Birthday Party

Nov 28th, 2021 (edited)
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. using System;
  2.  
  3. namespace BirthdayParty
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double rent = double.Parse(Console.ReadLine()),
  10.                 cake = rent / 5,
  11.                 drinks = cake * 0.55,
  12.                 animator = rent / 3;
  13.            
  14.             Console.WriteLine(rent + cake + drinks + animator);
  15.         }
  16.     }
  17. }
Add Comment
Please, Sign In to add comment