Yes, this is homework, but I cant figure out how to do it using only for loops.
I was able to reproduce the structure with a for loop and if else statements but my instructor told me that won't fly.
public class Problem3 {
public static void main(String[] args) {
/** Code under here */
int box = 22;
for(int i=22; i>0; i--)
{
if(i==18)
System.out.println("\\\\"+"!!!!!!!!!!!!!!!!!!"+"//");
else if(i == 14)
System.out.println("\\\\\\\\"+"!!!!!!!!!!!!!!"+"////");
else if (i== 10)
System.out.println("\\\\\\\\\\\\"+"!!!!!!!!!!"+"//////");
else if (i == 6)
System.out.println("\\\\\\\\\\\\\\\\"+"!!!!!!"+"////////");
else if (i == 2)
System.out.println("\\\\\\\\\\\\\\\\\\\\"+"!!"+"//////////");
else if(i == 22)
System.out.println("!!!!!!!!!!!!!!!!!!!!!!");
}
System.out.println("");
}
}