DEV Community

Ivan Ivanov
Ivan Ivanov

Posted on

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

Top comments (1)

Collapse
 
lutharblunks profile image
lutharblunks

Can you make a code that scrap all Best season tickets sales plan for basketball so me and my friends never skip any season for basketball? Is it possible to get that?