Hey guys i was writing a code for my project and got stocked, if someone can help me i'll be really happy
that's my code:
public class project1_4
{public static void main(String[] args)
{int i,j,k,m,n,h,size=4;
System.out.print("|");
for(j=1;j<=size*2+2;j++)
System.out.print("\"");
System.out.print("|");
System.out.println();
for(m=1;m<=size;m++)
{for(k=1;k<=m;k++)
System.out.print(" ");
System.out.print("\\");
{for(i=1;i<=size*2;i++)
System.out.print(":");
System.out.print("/");
System.out.println();
}
}
}
}
and the output i need is this Capture1.JPG
and i can use only nested loops...
thanks to everyone that will at least read it