Advertisement
M0Hk

Basketball Equipment

Sep 17th, 2023
510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.64 KB | Software | 0 0
  1. using System;
  2. using System.Diagnostics.Metrics;
  3.  
  4. namespace firstLesson
  5. {
  6.     internal class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             int annualFee = int.Parse(Console.ReadLine());
  11.  
  12.             double sneakersPrice = annualFee * 0.6;
  13.             double teamPrice = sneakersPrice * 0.8;
  14.             double basketballPrice = teamPrice * 0.25;
  15.             double accessoriesPrice = basketballPrice * 0.2;
  16.  
  17.             double totalBasketCost = annualFee + sneakersPrice + teamPrice + basketballPrice + accessoriesPrice;
  18.  
  19.             Console.WriteLine(totalBasketCost);
  20.            
  21.  
  22.  
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement