✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Quin serà el contingut final de la matriu al final de l'execució d'aquest algorisme:
Suposem que l'usuari entra els següent valors pel teclat; 2, 4, 6, 8, 10 i 12.
algorisme ?? ésconstant DIM <- 4; fconstantvar m: taula[DIM][DIM] de enter; f, c: enter;fvarinici f <- 0; mentre (f<DIM) fer m[f][f] <- 0; f <- f+1; fmentre per f <- DIM-1 fins 0 pas-1 fer per c <- f-1 fins 0 pas -1 fer llegir(m[f][c]); m[c][f] <- m[f][c]; fper fperfalgorisme
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!