Advertisement
hmcristovao

Lista 03 - exercício 38

May 11th, 2012
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. int main() {
  3.    int i, j, qtde;
  4.    printf("Quantas linhas? ");
  5.    scanf("%d", &qtde);
  6.    for(i=1; i <= qtde; i++) {
  7.       for(j=1; j <= i; j++) {
  8.          printf("%02d ",i);
  9.       }
  10.       printf("\n");
  11.    }
  12.    return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement