Advertisement
clipro

Untitled

Nov 5th, 2018
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.07 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace exr_01_matrix
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int a = int.Parse(Console.ReadLine());
  14.             int b = int.Parse(Console.ReadLine());
  15.             int c = int.Parse(Console.ReadLine());
  16.             int d = int.Parse(Console.ReadLine());
  17.  
  18.             for (int i = a; i <= b; i++)
  19.             {
  20.                 for (int ii = i++; ii < b; ii++)
  21.                 {
  22.                     for (int iii = c; iii < d; iii++)
  23.                     {
  24.                         for (int iiii = iii++; iiii < d; iiii++)
  25.                         {
  26.                             if (i + iiii == ii + iii)
  27.                             {
  28.                                 Console.WriteLine("" + i + ii);
  29.                                 Console.WriteLine("" + iii + iiii);
  30.                             }
  31.                         }
  32.                     }
  33.                 }
  34.             }
  35.         }
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement