Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace 01
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int count = int.Parse(Console.ReadLine());
- double totalPrice = 0;
- for (int i = 1; i <= count; i++)
- {
- string equipment = Console.ReadLine();
- if (equipment == "bed")
- {
- totalPrice += 1300;
- }
- else if (equipment == "jacuzzi")
- {
- totalPrice += 3200;
- }
- else if (equipment == "towel")
- {
- totalPrice += 10;
- }
- }
- Console.WriteLine($"{totalPrice:F2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement