Advertisement
AbraaoAllysson

[matriz] pegando e exibindo valores

Jul 3rd, 2016
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3. #define tamL 10
  4. #define tamC 12
  5. int main()
  6. {
  7.     int n=10;
  8.     int resp[tamL][tamC];
  9.    
  10.     for(int l=0; l<2; l++)
  11.     {
  12.         for(int r=0; r<=10; r++)
  13.         {
  14.             cout << "Digite a " << r + 1 <<"ª " << "resposta do Aluno: \n";
  15.             cin >>resp[l][r];
  16.             cout <<"\n";
  17.         }
  18.     }  
  19.    
  20.     for(int l=0; l<2; l++)
  21.     {
  22.         for(int r=0; r<=10; r++)
  23.         {
  24.             cout << resp[l][r]<<endl;
  25.         }
  26.     }  
  27.    
  28.    
  29.     return 0;  
  30.    
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement