Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* CABEÇALHO
- Arquivo: LISTA 03 - Exercicio 39.c
- Objetivo: Desenhe uma piramide de numeros.
- Autor(a): Ramon Borges
- */
- #include <stdio.h>
- int main()
- {
- int i, j, linhas;
- printf("\nInforme o numero de linhas: ");
- scanf("%d", &linhas);
- for(i = 1; i <= linhas; i++)
- {
- for(j = 1; j <= i; j++)
- {
- printf("0%d ", j);
- }
- printf("\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment