Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Programa que recebe os valores de uma matriz 3x3
- #include <iostream>
- #include <conio.h>
- using namespace std;
- int main(){
- int Matriz[3][3], linhas, colunas;
- linhas = 3;
- colunas = 3;
- for(int i=0;i<linhas;i++){
- for (int j=0;j<colunas;j++){
- cout<<"Digite um número: ["<<i<<"]["<<j<<"]";
- cin>>Matriz[i][j];
- }
- }
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment