Advertisement
NadyaMisheva

Untitled

Nov 1st, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1. using System;
  2.                    
  3. public class Program
  4. {
  5.     public static void Main()
  6.     {
  7.      int x1 = int.Parse(Console.ReadLine());
  8.     int x2 = int.Parse(Console.ReadLine());
  9.         int y1 = int.Parse(Console.ReadLine());
  10.         int y2 = int.Parse(Console.ReadLine());
  11.         int area = (x2 - x1) * (y1 - y2);
  12.         Console.WriteLine("S = {0}", area);
  13.        
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement