Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Loops
- {
- class Program
- {
- static void Main(string[] args)
- {
- int sportTax = int.Parse(Console.ReadLine());
- double sneekers = sportTax * 0.60;
- double shorts = sneekers * 0.80;
- double ball = shorts * (1.0 / 4);
- double accesories = ball * (1.0 / 5);
- double all = sneekers + shorts + ball + accesories + sportTax;
- Console.WriteLine($"{all:f2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement