#include <iostream>

int main()
{
    const unsigned rows = 3 ;
    const unsigned cols = 5 ;
    for ( unsigned row=0; row < rows; ++row )
        for ( unsigned col =0; col < cols; ++col )
            std::cout << '(' << row << ',' << col << ") = " << row * cols + col << '\n' ;
}