8. Basketball Equipment

ivanitd

Ivan Ivanov

Posted on January 20, 2023

8. Basketball Equipment
using System;

namespace BasketballEquipment
{
internal class Program
{
    static void Main(string[] args)
    {
        int basketballYearSub = int.Parse(Console.ReadLine());

        double basketballSneakers = basketballYearSub - (basketballYearSub * 0.4);
        double basketballOutfit = basketballSneakers - (basketballSneakers * 0.2);
        double basketBall = basketballOutfit / 4 ;
        double basketballAccessories = basketBall / 5;
        double totalEquipmentPrice = basketballYearSub + basketballSneakers + basketballOutfit + basketBall + basketballAccessories;

        Console.WriteLine(totalEquipmentPrice);
    }
}
}
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
ivanitd
Ivan Ivanov

Posted on January 20, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

7. Food Delivery
csharp 7. Food Delivery

January 20, 2023

8. Basketball Equipment
csharp 8. Basketball Equipment

January 20, 2023

6. Repainting
csharp 6. Repainting

January 20, 2023

1. USD To BGN
csharp 1. USD To BGN

January 20, 2023

3. Deposit Calculator
csharp 3. Deposit Calculator

January 20, 2023