Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. ng System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Concatenate_Data
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. var x1 = double.Parse(Console.ReadLine());
  14. var y1 = double.Parse(Console.ReadLine());
  15. var x2 = double.Parse(Console.ReadLine());
  16. var y2 = double.Parse(Console.ReadLine());
  17. var a = Math.Abs(x1 - x2);
  18. var b = Math.Abs(y1 - y2);
  19. var area = (a * b);
  20. var perimeter = (2 * (a + b));
  21. Console.WriteLine(area);
  22. Console.WriteLine(perimeter);
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement