I have a 2D table problem. I want to fill 2D table with some numbers but I do not know how to do it.
Example:
int main()
{
int generate;
printf("Enter a number: ");
scanf("%d", &generate);
for (int i=0; i<10; i++)
{
for (int j=0; j<10; j++)
{
Table[i][j] = generate;
printf("%d,%d\n", Table[i][j]);
}
}
return 0;
}
With this code I only fill the the [i] part.
What Am I missing?