desislava_topuzakova

08. Basketball Equipment

Sep 12th, 2021
1,475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. using System;
  2.  
  3. namespace BasketballEquipment
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int taxPerYear = int.Parse(Console.ReadLine());
  10.             double trainersPrice = taxPerYear - 0.4 * taxPerYear;
  11.             double outfitPrice = trainersPrice - 0.2 * trainersPrice;
  12.             double ballPrice = outfitPrice / 4;
  13.             double accPrice = ballPrice / 5;
  14.  
  15.             double expenses = taxPerYear + trainersPrice + outfitPrice
  16.                     + ballPrice + accPrice;
  17.  
  18.             Console.WriteLine(expenses);
  19.  
  20.  
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment