Advertisement
dragonbs

BasketballEquipment

Sep 15th, 2022
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _08.BasketballEquipment
  4. {
  5.     internal class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double yearPayment = double.Parse(Console.ReadLine());
  10.  
  11.             double priceForSneakers = yearPayment * 0.6;
  12.             double priceForOutfit = priceForSneakers - (priceForSneakers * 0.2);
  13.             double priceForBall = priceForOutfit / 4;
  14.             double priceForAccesoares = priceForBall / 5;
  15.  
  16.             double allSum = priceForSneakers + priceForOutfit + priceForBall + priceForAccesoares + yearPayment;
  17.  
  18.             Console.WriteLine(allSum);
  19.         }
  20.     }
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement