Home > Back-end >  The for loop is not too clear, don't understand is how to make a image like that?
The for loop is not too clear, don't understand is how to make a image like that?

Time:03-25

 
Int height=5;
Int width=6;
for(int i=0; Ifor(int j=0; JSystem.out.print("*");
}
System.out.println();
}


Why do you write can get the images below?
* * * * * *
* * * * * *
* * * * * *
* * * * * *
* * * * * *
for(int j=0; JSystem.out.print("*");
}
This * at most 6, how to come out so much?
  • Related