Monday, December 10, 2007

How to DRAW A "0" PIRAMID

How to DRAW A "0" PIRAMID

To DRAW A "0" PIRAMID

#include

#define view '0'

main ()

{ int h,l;

for(h=1 ; h<=5 ; h++)

{ for (l=1 ; l<=5-h ; l++)

cout<<" ";

for (l=1 ; l<=2*h-1 ; l++)

cout<

cout<<"\n";

}

return 0;

}

Result :


No comments: