// Possible outcomes when rolling 2 dice with nested loops #include #include using namespace std; const int N = 6; // no. of faces of a die int main() { // outer loop for (int i=1; i<=N; ++i){ // inner loop for (int j=1; j<=N; ++j){ cout << i << ' ' << j << endl; } } }