//*..AN ATTEMPT TO MAKE GURUDUARA SHAPE USING STARS..*//
#include<stdio.h>
int main()
{
int c,a,s,n,j,temp;
char choose;
printf("ENTER THE NO. OF ROWS||SIZE U WANT TO PRINT IN PYRAMID:\n");
scanf("%d",&n);
temp=n;//TEMP HAS VALUE OF NUMBER OF ROWS..//
j=0;
/*do
{
printf("ENTER THE CASE:\n");
scanf("%c",&choose);
switch(choose)*/
for(s=1;s<=n;s++)//OPERATE LOOP FOR NUMBER OF ROWS..//
{
for(j=0;j<2;j++)//J OPERATES TWO TIMES
{
for(c=1;c<temp;c++)//1ST TIME SPACE OF 8 FOR 9 ROWS IS LEFT //2ND TIME SPACE OF 7 FOR 8TH ROW//3RD TIME SPACE OF 6 IS LEFT...SO ON....LAST TIME NO SPACE LEFT FOR 1ST ROW..SO PYRAMID IS MADE..//
printf(" ");//BLANCK SPACE IS LEFT
temp--;//TEMP DECREASES EVERYTIME ...MEANS SPACE FOR STARS OF PYRAMID REDUCES EVERYTIME
printf("*");//STAR PRINTS 1ST TIME OF J=0 LIKE PYRAMID//FOR 2ND TIME OF J ..TEMP IS ALREADY ZERO SO NO SPACE WILL BE LEFT IN NEW LINE...BUT A SINGLE STAR IN EVERY NEW LINE WI /*for(c=1;c<(2*s-2);c++)