Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void main(){
- int i,j,k,e, input;
- for(i = 1; i <= 9 ; i++)
- {
- for (e=8;e>=i;e--)
- printf(" ");
- for(j = 1; j <= i; j++)
- {
- printf("%d",j);
- }
- printf(" ");
- for(k=1;k<=i;k++)
- printf("%d",k);
- printf("\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment