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 FitnessEquipment
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int c = 0;
- for (int i = 0; i < n; i++)
- {
- var FitnessEquipment = Console.ReadLine();
- {
- if (FitnessEquipment == "treadmill")
- {
- c += 5899;
- }
- else if (FitnessEquipment == "cross trainer")
- {
- c += 1699;
- }
- else if (FitnessEquipment == "exercise bike")
- {
- c += 1789;
- }
- else if (FitnessEquipment == "dumbbells")
- {
- c += 579;
- }
- }
- }
- Console.WriteLine("{0:f2}", c);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement