Advertisement
IvanITD

08.BasketballEquipment

Jan 14th, 2024
693
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | Source Code | 0 0
  1. int basketballYearSubscription = int.Parse(Console.ReadLine());
  2.  
  3. double shoes = basketballYearSubscription - (basketballYearSubscription * 0.40);
  4. double outfit = shoes - (shoes * 0.20);
  5. double basketball = outfit / 4;
  6. double accessories = basketball / 5;
  7.  
  8. double taxPerYear = basketballYearSubscription + shoes + outfit + basketball + accessories;
  9.  
  10. Console.WriteLine(taxPerYear);
Tags: C#
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement