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)
- {
- double tables = double.Parse(Console.ReadLine());
- double lenghOfTables = double.Parse(Console.ReadLine());
- double widthOfTables = double.Parse(Console.ReadLine());
- double tablecloths = tables * (lenghOfTables + 2 * 0.30) *
- (widthOfTables + 2 * 0.30);
- double check = tables * (lenghOfTables / 2) * (lenghOfTables / 2);
- double usd = tablecloths * 7 + check * 9;
- double leva = usd * 1.85;
- Console.WriteLine($"{usd:f2} USD");
- Console.WriteLine($"{leva:f2} BGN");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement