#include <iostream> using namespace std; int main(){ for(int i = 0; i < 4; i++) { for(int j = 0; j < 4; j++) { if(i == j) continue; cout << "(" << j << "," << i << ")"; } cout << '\n'; } return 0;}
Standard input is empty
(1,0)(2,0)(3,0) (0,1)(2,1)(3,1) (0,2)(1,2)(3,2) (0,3)(1,3)(2,3)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!