Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- int[] subset = new int[5];
- for (int i = 0; i < 5; i++)
- {
- subset[i] = int.Parse(Console.ReadLine());
- }
- for (int j = 0; j < 5; j++)
- {
- for (int m = 0; m < 5; m++)
- {
- if (subset[j] + subset[m] == 0)
- {
- Console.WriteLine("{0} + {1} = 0", subset[j], subset[m]);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement