fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static bool Func(int a, int b)
  6. {
  7. return (a -= -b) == (a += b);
  8. }
  9.  
  10. public static void Main()
  11. {
  12. for (int a = 0; a <= 10; ++a)
  13. for (int b = 0; b <= 10; ++b)
  14. if (Func(a, b))
  15. Console.WriteLine($"{a}, {b}");
  16. }
  17. }
  18.  
Success #stdin #stdout 0.06s 28908KB
stdin
Standard input is empty
stdout
0, 0
1, 0
2, 0
3, 0
4, 0
5, 0
6, 0
7, 0
8, 0
9, 0
10, 0