Advertisement
NadyaMisheva

zadacha 1 test

Dec 9th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1. using System;
  2.                    
  3. public class Program
  4. {
  5.     public static void Main()
  6.     {
  7.         int people = int.Parse(Console.ReadLine());
  8.         int jacket = int.Parse(Console.ReadLine());
  9.         int helmet = int.Parse(Console.ReadLine());
  10.         int shoes = int.Parse(Console.ReadLine());
  11.         double price = (jacket * 120 + helmet * 75 + shoes * 299.90) * people;
  12.         double price1 = price + price * 0.2;
  13.         Console.WriteLine("{0:F2}", price1);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement