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 Tailoring_Workshop
- {
- class Program
- {
- static void Main(string[] args)
- {
- int tablesNumber = int.Parse(Console.ReadLine());
- double tableLenght = double.Parse(Console.ReadLine());
- double tableWidth = double.Parse(Console.ReadLine());
- double coverArea = tablesNumber * (tableLenght + 2 * 0.30) * (tableWidth + 2 * 0.30);
- double boxcoverArea = tablesNumber * (tableLenght / 2) * (tableLenght / 2);
- double priceInUsd = coverArea * 7 + boxcoverArea * 9;
- double priceInBgn = (coverArea * 7 + boxcoverArea * 9) * 1.85;
- Console.WriteLine($"{priceInUsd:F2} USD");
- Console.WriteLine($"{priceInBgn:F2} BGN");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement