MCPcopy
hub / github.com/DuGuQiuBai/Java / main

Method main

day04/code/04_循环语句(嵌套使用)/ForForDemo3.java:14–33  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

12*/
13class ForForDemo3 {
14 public static void main(String[] args) {
15 //������ǰ�ÿһ�п���һ��*
16 //��ô����ʵ�������Ǹղŵ�������
17 /*
18 for(int x=1; x<=9; x++) {
19 for(int y=1; y<=x; y++) {
20 System.out.print("*"+"\t");
21 }
22 System.out.println();
23 }
24 */
25
26 //������������Ҫ��*�滻Ϊ����ʽ
27 for(int x=1; x<=9; x++) {
28 for(int y=1; y<=x; y++) {
29 System.out.print(y+"*"+x+"="+(x*y)+"\t");
30 }
31 System.out.println();
32 }
33 }
34}

Callers

nothing calls this directly

Calls 1

printMethod · 0.80

Tested by

no test coverage detected