How do I print this?
!!!!!!!!!!!!!!!!!!!!!!
\\!!!!!!!!!!!!!!!!!!//
\\\\!!!!!!!!!!!!!!////
\\\\\\!!!!!!!!!!//////
\\\\\\\\!!!!!!////////
\\\\\\\\\\!!//////////
I have:
public class SlashFigure {
public static void main(String[] args){
first();
}
public static void first() {
for ( int i= 1; i<=6; i++) {
for (int l = 0; l <= 2 * i -2; l++) {
System.out.print("\\");
}
for (int e = 22; e >= -2*i + 26; e-=1) {
System.out.print("!");
}
for (int r = 0; r <= 2 * i -2; r++) {
System.out.print("/");
}
System.out.println();
}
}
}
and it's printing this:
\/
\\\!///
\\\\\!!!/////
\\\\\\\!!!!!///////
\\\\\\\\\!!!!!!!/////////
\\\\\\\\\\\!!!!!!!!!///////////