Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main(string[] args)
- {
- var a = double.Parse(Console.ReadLine());
- var b = double.Parse(Console.ReadLine());
- a = Math.Abs(a - double.Parse(Console.ReadLine()));
- b = Math.Abs(b - double.Parse(Console.ReadLine()));
- Console.WriteLine("{0}\n{1}", a * b, 2 * (a + b));
- }
- }
Add Comment
Please, Sign In to add comment