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