Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int tables = int.Parse(Console.ReadLine());
- double length = double.Parse(Console.ReadLine());
- double width = double.Parse(Console.ReadLine());
- double areaOnCover = (length + 2 * 0.30) * (width + 2 * 0.30);
- double areaOnSquare = (length / 2) * (length / 2);
- double totalPriceInDollars = areaOnCover * 7 + areaOnSquare * 9;
- double totalPriceInBGN = totalPriceInDollars * 1.85;
- Console.WriteLine($"{totalPriceInDollars:f2} USD");
- Console.WriteLine($"{totalPriceInBGN:f2} BGN");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement