SyntaxFix
Write A Post
Hire A Developer
Questions
You can use for loop if you really want to.
char table[][] table = new char[row][col]; for(int i = 0; i < row * col ; ++i){ table[i/row][i % col] = char('a' + (i+1)); }
or do what bhesh said.