Write Logic for below scenario with minimal loops * * * * * * * * * * * * * * * * * * * * *
Sigiloso
//Took three loops #include void main(){ int n=5,i,temp1,temp2,dumb=0,x; for(i=n;i>0;i--){ temp1=i; temp2=n; while(temp1>0 && i>=((temp2/2)+1) && dumb==0){ printf("* "); temp1--; } if(i==((temp2/2)+1)){ dumb=1; } x=0; while(i0){ x--; printf("* "); } printf("\n"); } }