Create a program using a Two-Dimensional Array that will display values
#include <stdio.h>
int main()
{
// Two-Dimensional Array
int array[10][10];
for (int i = 0; i < 10; i++)
for (int j = 0; j < 10; j++)
array[i][j] = i;
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 10; j++)
printf("%d ", array[i][j]);
printf("\n");
}
}
Comments
Leave a comment