Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- main()
- {
- int a, b, d, i;
- char c;
- scanf("%d", &a);
- fflush(stdin);
- scanf("%c", &c);
- if(a > 0 && a <= 28)
- {
- //b = a;
- d = a;
- //i = a - 1;
- for(a ; a > 0 ; a--)
- {
- for(b = a - 1 ; b <= d ; b++)
- putchar(c);
- printf("\n");
- i--;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement