Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Diagnostics.Metrics;
- namespace firstLesson
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int annualFee = int.Parse(Console.ReadLine());
- double sneakersPrice = annualFee * 0.6;
- double teamPrice = sneakersPrice * 0.8;
- double basketballPrice = teamPrice * 0.25;
- double accessoriesPrice = basketballPrice * 0.2;
- double totalBasketCost = annualFee + sneakersPrice + teamPrice + basketballPrice + accessoriesPrice;
- Console.WriteLine(totalBasketCost);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement