Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace 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 j = a; j <= b; j++)
- {
- for (int n = c; n <= d; n++)
- {
- for (int m = c; m <= d; m++)
- {
- if(i!=j&&n!=m&&i+m==j+n)
- {
- Console.WriteLine($"{i}{j}");
- Console.WriteLine($"{n}{m}");
- Console.WriteLine();
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment