8. Basketball Equipment
Ivan Ivanov
Posted on January 20, 2023
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);
}
}
}
💖 💪 🙅 🚩
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.