diff --git a/C/A crazy pyramid program for c.c b/C/A crazy pyramid program for c.c new file mode 100644 index 00000000..7720382e --- /dev/null +++ b/C/A crazy pyramid program for c.c @@ -0,0 +1,71 @@ +// n'th line has n number of stars +// * +// * * +// * * * +// * * * * +#include +#include +void main() +{ + int row,col,h; + printf("enter height\n"); + scanf("%d",&h); + if(h%2!=0) + { + for(row=0;row=h-row)&&(col<=h+row) || (col>h-row)&&(colh-row)&&(col