hawzze

birthdayParty_SoftUni

Jul 11th, 2020
51
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace softuni1
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double rent = double.Parse(Console.ReadLine());
  10.          
  11.             double cake = rent * 0.2;
  12.             double cokes = cake -(cake*0.45);
  13.             double animator = rent / 3;
  14.             double sum = rent + cake + cokes + animator;
  15.          
  16.             Console.WriteLine(sum);
  17.  
  18.         }
  19.  
  20.     }
  21. }
RAW Paste Data