Advertisement
kojotuse

Untitled

Apr 13th, 2012
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. main()
  4. {
  5.     int a, b, d, i;
  6.     char c;
  7.     scanf("%d", &a);
  8.     fflush(stdin);
  9.     scanf("%c", &c);
  10.     if(a > 0 && a <= 28)
  11.     {
  12.         //b = a;
  13.         d = a;
  14.         //i = a - 1;
  15.         for(a ; a > 0 ; a--)
  16.         {
  17.             for(b = a - 1 ; b <= d ; b++)
  18.                 putchar(c);
  19.  
  20.             printf("\n");
  21.             i--;
  22.  
  23.         }
  24.     }
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement