ramontricolor12

LISTA 05 - Exercício 11

Jul 8th, 2013
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. /* CABEÇALHO
  2.    Arquivo: LISTA 05 - Exercicio 11.c
  3.    Objetivo: Exibir os numeros da matriz.
  4.    Autor(a): Ramon Borges
  5.  */
  6.  
  7. #include <stdio.h>
  8. int main()
  9. {
  10.     int i, j, ordem;
  11.     printf("Informe a ordem da matriz quadrada: ");
  12.     scanf("%d", &ordem);
  13.     for(i = 0; i < ordem; i++)
  14.     {
  15.         for(j = 0; j < ordem; j++)
  16.             printf("%d  ", i+1);
  17.         printf("\n");
  18.     }
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment