# include

# include

# include

main(){

`int ponto; int cartela_1[4] [4]; srand(time(NULL)); for(int i=0; i<4; i++){ for(int j=0; j<4; j++){ cartela_1[i][j] = rand()%100; } } `

for (int i=0; i<4; i++){ for(int j=0; j<4; j++){ printf(” %.2d”, cartela_1[i][j]); } printf(“\n”); }

int cartela_2[4] [4]; srand(time(NULL)); for(int i=0; i<4; i++){ for(int j=0; j<4; j++){ cartela_2[i][j] = rand()%100; } }

for (int i=0; i<4; i++){ for(int j=0; j<4; j++){ printf(” %.2d”, cartela_2[i][j]); } printf(“\n”); }

while (ponto <= 16){

srand(time(NULL)); for (int l = 0; l < 1; l++){ printf(“%d “, rand() %100); for (int i = 0; i < 4; i++){ for(int j = 0; j < 4; j++){ if (cartela_1[i][j] == l){ ponto++; printf(“XX”);} if (cartela_2[i][j] == l){ ponto++; printf(“XX”);} } } }

for (int i=0; i<4; i++){ for(int j=0; j<4; j++){ printf(” %.2d”, cartela_1[i][j]); } printf(“\n”); } printf(“\n\n”); for (int i=0; i<4; i++){ for(int j=0; j<4; j++){ printf(” %.2d”, cartela_2[i][j]); } printf(“\n”); } system(“cls”); } return 0; }