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 :
Post a Comment
No comments:
Post a Comment