Spocoman

08. Basketball Equipment

Nov 14th, 2021 (edited)
59
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 BasketballEquipment
  4.  
  5. {
  6.     class Program
  7.     {
  8.         static void Main()
  9.         {
  10.             int tuitionFee = int.Parse(Console.ReadLine());
  11.  
  12.             double shoesPrice = tuitionFee * 0.6;
  13.             double teamClothes = shoesPrice * 0.8;
  14.             double ball = teamClothes / 4;
  15.             double accessories = ball / 5;
  16.  
  17.             double sum = tuitionFee + shoesPrice + teamClothes + ball + accessories;
  18.        
  19.             Console.WriteLine(sum);
  20.         }
  21.     }
  22. }
Add Comment
Please, Sign In to add comment