Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Tailoring_Workshop
- {
- class Program
- {
- static void Main(string[] args)
- {
- var numberTables = double.Parse(Console.ReadLine());
- var p = double.Parse(Console.ReadLine());
- var w = double.Parse(Console.ReadLine());
- var pokrivki = numberTables * (p + 2 * 0.30) * (w + 2 * 0.30);
- var kareta = numberTables * (p / 2) * (p / 2);
- var price = pokrivki * 7 + kareta * 9;
- Console.WriteLine("{0:f2}", price + " USD");
- Console.WriteLine("{0:f2}", price * 1.85 + " BGN");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement