actually I'm working in a batlleship project. And first I'm trying to make the program print the board. I have a for-loop (that includes another for-loop inside) and it does print the board with the values 10x10 like that:
A B C D E F G H I J
A - - - - - - - - - -
B - - - - - - - - - -
C - - - - - - - - - -
D - - - - - - - - - -
E - - - - - - - - - -
F - - - - - - - - - -
G - - - - - - - - - -
H - - - - - - - - - -
I - - - - - - - - - -
J - - - - - - - - - -
But, I'm trying to figure out how can I make the program to take the values NxN through keyboard inputs, in case that the user want different values. The min number of rows/columns being 5, the maximum being 26.