Advertisement
silvana1303

basketball equipment

Apr 25th, 2020
491
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Loops
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int sportTax = int.Parse(Console.ReadLine());
  10.  
  11.             double sneekers = sportTax * 0.60;
  12.  
  13.             double shorts = sneekers * 0.80;
  14.  
  15.             double ball = shorts * (1.0 / 4);
  16.  
  17.             double accesories = ball * (1.0 / 5);
  18.  
  19.             double all = sneekers + shorts + ball + accesories + sportTax;
  20.  
  21.             Console.WriteLine($"{all:f2}");
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement