#include <stdio.h>
int main() {
int vetor [9];
int matriz [3][3];
printf("Digite 9 número para uma matriz \n" ); for (int i = 0; i < 9; i++) {
}
for (int lin = 0, k = 0; lin < 3; lin++) {
for (int col = 0; col < 3; col++, k++) {
matriz[lin][col] = vetor[k];
printf("%i\t", matriz
[lin
][col
]); }
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKCkgewogICAgaW50IHZldG9yIFs5XTsKICAgIGludCBtYXRyaXogWzNdWzNdOwogICAgcHJpbnRmKCJEaWdpdGUgOSBuw7ptZXJvIHBhcmEgdW1hIG1hdHJpeiBcbiIgKTsKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgOTsgaSsrKSB7CiAgICAgICAgc2NhbmYoIiVpIiwgJnZldG9yW2ldKTsKICAgIH0KICAgIGZvciAoaW50IGxpbiA9IDAsIGsgPSAwOyBsaW4gPCAzOyBsaW4rKykgewogICAgICAgIGZvciAoaW50IGNvbCA9IDA7IGNvbCA8IDM7IGNvbCsrLCBrKyspIHsKICAgICAgICAgICAgbWF0cml6W2xpbl1bY29sXSA9IHZldG9yW2tdOwogICAgICAgICAgICBwcmludGYoIiVpXHQiLCBtYXRyaXpbbGluXVtjb2xdKTsKICAgICAgICB9CiAgICAgICAgcHJpbnRmKCJcbiIpOwogICAgfQp9