Answer to Question #302030 in C for piddy

Question #302030

Create a program using a Two-Dimensional Array that will display values

1
Expert's answer
2022-02-24T08:03:11-0500
#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");
           }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS