Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApplication
- {
- class Program
- {
- static void Main()
- {
- int width = int.Parse(Console.ReadLine());
- int lenght = int.Parse(Console.ReadLine());
- double heightМ = double.Parse(Console.ReadLine());
- double price = double.Parse(Console.ReadLine());
- double weight = double.Parse(Console.ReadLine());
- double widthM = 2.0 * width + 2.0 * lenght;
- Console.WriteLine(widthM);
- Console.WriteLine("{0:f2}", price * widthM);
- Console.WriteLine("{0:f3}", heightМ * widthM * weight);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement