Advertisement
gtw7375

MATRIZ

Sep 10th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.82 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. main() {
  5.  
  6.        int x, y;
  7.        int vetor[4][4];
  8.        
  9.               for(x=0; x<4; x++) {
  10.                        for(y=0; y<4; y++) {
  11.                                
  12.                                 printf("Digite o valor da matriz:");
  13.                                 scanf("%d", &vetor[x][y]);
  14.                                 }
  15.                        }
  16.                for(x=0; x<4; x++) {
  17.                         for(y=0; y<4; y++) {
  18.  
  19.                                  
  20.                                   printf(" %d ", vetor[x][y]);
  21.                                                                    
  22.                                   }
  23.                                    printf("\n");
  24.                                    }
  25.                        system("pause");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement