java利用循环输出

java利用循环输出
*****
*****
*****
*****
*****
*****
*****
*****
*****
*****

慕桂英4014372
浏览 654回答 2
2回答

慕田峪9158850

public class App {&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; public static void main(String[] args) {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i < 10; i++) {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int j = 0; j < 5; j++)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.print('*');&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println();&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; }}

宝慕林4294392

public static void main(String[] args){for(int i=1;i<=10;i++){for(int n=1;n<=5;n++){System.out.print("*");}System.out.println();}}
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java