Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace FitnesEquipmentt
- {
- class Program
- {
- static void Main(string[] args)
- {
- var v = int.Parse(Console.ReadLine());
- var finalPrice = 0.0m;
- for (int i = 0; i < v; i++)
- {
- var equipment = Console.ReadLine();
- switch (equipment)
- {
- case "exercise bike":
- finalPrice += 1789;
- break;
- case "treadmill":
- break;
- case "cross trainer":
- break;
- case "dumbbells":
- break;
- }
- }
- Console.WriteLine("{0:0.00}",finalPrice);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement