#include <stdio.h>
int main() {
int matriz[3][3];
matriz[0][0] = 1;
matriz[0][1] = 2;
matriz[0][2] = 3;
matriz[1][0] = 4;
matriz[1][1] = 5;
matriz[1][2] = 6;
matriz[2][0] = 7;
matriz[2][1] = 8;
matriz[3][2] = 9;
int coluna, linha, numero;
for (linha = 0; linha < 3; linha++) {
for (coluna = 0; coluna < 3; coluna++) {
if (numero == matriz[linha][coluna]) {
printf("\nA posicao do numero eh linha: %d e coluna: %d", linha
, coluna
); }
}
}
if (numero < 1 || numero > 9) {
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBtYXRyaXpbM11bM107CiAgICBtYXRyaXpbMF1bMF0gPSAxOwogICAgbWF0cml6WzBdWzFdID0gMjsKICAgIG1hdHJpelswXVsyXSA9IDM7CiAgICBtYXRyaXpbMV1bMF0gPSA0OwogICAgbWF0cml6WzFdWzFdID0gNTsKICAgIG1hdHJpelsxXVsyXSA9IDY7CiAgICBtYXRyaXpbMl1bMF0gPSA3OwogICAgbWF0cml6WzJdWzFdID0gODsKICAgIG1hdHJpelszXVsyXSA9IDk7CiAgICBpbnQgY29sdW5hLCBsaW5oYSwgbnVtZXJvOwoKICAgIHByaW50ZigiRGlnaXRlIHVtIG51bWVybzogIik7CiAgICBzY2FuZigiJWQiLCAmbnVtZXJvKTsKCiAgICBmb3IgKGxpbmhhID0gMDsgbGluaGEgPCAzOyBsaW5oYSsrKSB7CiAgICAgICAgZm9yIChjb2x1bmEgPSAwOyBjb2x1bmEgPCAzOyBjb2x1bmErKykgewogICAgICAgICAgICBpZiAobnVtZXJvID09IG1hdHJpeltsaW5oYV1bY29sdW5hXSkgewogICAgICAgICAgICAgICAgcHJpbnRmKCJcbkEgcG9zaWNhbyBkbyBudW1lcm8gZWggbGluaGE6ICVkIGUgY29sdW5hOiAlZCIsIGxpbmhhLCBjb2x1bmEpOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgfQogICAgaWYgKG51bWVybyA8IDEgfHwgbnVtZXJvID4gOSkgewogICAgICAgIHByaW50ZigiTmFvIGVuY29udHJhZG8hIik7CiAgICB9Cn0K