54.8k views
3 votes
. Declare a 4 x 3 size array and fill all rows and columns with random numbers and print array. c language

User Yali
by
7.0k points

1 Answer

3 votes

Answer:

#include <stdio.h>

#include <stdlib.h>

#include <time.h>

int main()

{

int two_d[4][3];

for(int x; x < 4; x++)

{

for(int y; y < 3; y++)

{

srand (time(NULL));

two_d[x][y] = rand();

}

}

}

Step-by-step explanation:

do you need an explanation? Tell me if you do.

User Beatleman
by
7.4k points