Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<conio.h>
- #include<stdio.h>
- void main()
- {
- //clrscr();
- int i,j,k,l,m=5,n=18,o=5;
- int c=7,d=7,num=2;
- for(i=0;i<5;i++)
- {
- for(j=0;j<=c;j++)
- printf(" ");
- for(k=0;k<num;k++)
- printf("$");
- for(j=0;j<d;j++)
- printf(" ");
- if(i==4)
- {
- for(k=0;k<num-1;k++)
- printf("$");
- }
- else
- for(k=0;k<num;k++)
- printf("$");
- c-=1;
- d-=2;
- num+=2;
- printf("\n");
- }
- for(i=0;i<7;i++)
- {
- for(j=0;j<m;j++)
- printf(" ");
- for(k=0;k<n;k++)
- printf("$");
- for(j=0;j<o;j++)
- printf(" ");
- m+=2;
- o+=2;
- n-=4;
- printf("\n");
- }
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment