Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* CABEÇALHO
- Arquivo: LISTA 05 - Exercicio 11.c
- Objetivo: Exibir os numeros da matriz.
- Autor(a): Ramon Borges
- */
- #include <stdio.h>
- int main()
- {
- int i, j, ordem;
- printf("Informe a ordem da matriz quadrada: ");
- scanf("%d", &ordem);
- for(i = 0; i < ordem; i++)
- {
- for(j = 0; j < ordem; j++)
- printf("%d ", i+1);
- printf("\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment