Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _08._Basketball_Equipment
- {
- class Program
- {
- static void Main(string[] args)
- {
- double taxPerYear = double.Parse(Console.ReadLine());
- //кецове – 40 % по - малка от таксата за една година
- //екип – 20 % по - евтина от тази на кецовете
- //топка – 1 / 4 от цената на баскетболния екип
- //аксесоари – 1 / 5 от цената на баскетболната топка
- double shouesPrice = taxPerYear- taxPerYear * (40 / 100.0);
- double outfitPrice = shouesPrice - shouesPrice * (20 / 100.0);
- double ballPrice = outfitPrice / 4;
- double accPrice = ballPrice / 5;
- double sum = taxPerYear + shouesPrice + outfitPrice + ballPrice + accPrice;
- Console.WriteLine(sum);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment