Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace HousePainting
- {
- class Program
- {
- static void Main(string[] args)
- {
- double x = double.Parse(Console.ReadLine());
- double y = double.Parse(Console.ReadLine());
- double h = double.Parse(Console.ReadLine());
- double green = x * y * 2 - (1.5 * 1.5 * 2) + x * x * 2 - 1.2 * 2;
- double red = 2 * (x * y) + 2 * (x * h / 2);
- Console.WriteLine($"{green / 3.4:F2}");
- Console.WriteLine($"{red / 4.3:F2}");
- }
- }
- }
Add Comment
Please, Sign In to add comment