0
Please drow my pattern
********** ****. .**** ***. . . .*** **. . . . . .** *. . . . . . . .*
8 odpowiedzi
+ 3
public class Program {
public static void main(String[] args) {
int i, j, N = 5;
for( i = 0; i < N; i++ ) {
for( j = 0; j < 5 - i; j++ ) {
System.out.print("*");
}
for( j = 0; j < i; j++ ) {
System.out.print("..");
}
for( j = 0; j < 5 - i; j++ ) {
System.out.print("*");
}
System.out.println();
}
}
}
+ 1
What do you mean?
+ 1
In a code?
+ 1
I would help you, but I'm sorry, Java is one of my worst languages.
+ 1
I'm really not the person to ask, I'm really bad at this sort of stuff.
0
can u help me to design this pattern
0
yes
0
just give me the logic