void func(int num) { int i,j,k; if(num<3) { printf("Not enough star to build the shape\n\n"); return; } for(i=0;i