Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _05.Matrix
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- int c = int.Parse(Console.ReadLine());
- int d = int.Parse(Console.ReadLine());
- for (int i = a; i <= b; i++)
- {
- for (int k = a; k <=b; k++)
- {
- for (int n = c; n <=d; n++)
- {
- for (int m = c; m <= d; m++)
- {
- if ( i + m == k + n && i != k && n !=m)
- {
- Console.WriteLine($"{i}{k}");
- Console.WriteLine($"{n}{m}");
- Console.WriteLine();
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement