Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- int people = int.Parse(Console.ReadLine());
- int jacket = int.Parse(Console.ReadLine());
- int helmet = int.Parse(Console.ReadLine());
- int shoes = int.Parse(Console.ReadLine());
- double price = (jacket * 120 + helmet * 75 + shoes * 299.90) * people;
- double price1 = price + price * 0.2;
- Console.WriteLine("{0:F2}", price1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement