fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. for(int i = 0; i < 4; i++)
  8. {
  9. for(int j = 0; j < 4; j++)
  10. {
  11. if(i == j) continue;
  12. cout << "(" << j << "," << i << ")";
  13. }
  14. cout << '\n';
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
(1,0)(2,0)(3,0)
(0,1)(2,1)(3,1)
(0,2)(1,2)(3,2)
(0,3)(1,3)(2,3)