C++ Programming Code Examples C++ > Pyramid Patterns Code Examples Print Dimond of Star Print Dimond of Star * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * #include<iostream.h> #include<conio.h> void main() { int x, j, k; for(x=1;x<=5;x++) { for(j=x;j<5;j++) { cout<<" "; } for(k=1;k<(x*2);k++) { cout<<"*"; } cout<<"\n"; } for(x=4;x>=1;x--) { for(j=5;j>x;j--) { cout<<" "; } for(k=1;k<(x*2);k++) { cout<<"*"; } cout<<"\n"; } getch(); }