anotherAPI
This commit is contained in:
parent
acf692d5b9
commit
9204615a44
12
NestedLoop.java
Normal file
12
NestedLoop.java
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
public class NestedLoop {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
int x = 1;
|
||||||
|
for (int i = 0; i < 3; i++) {
|
||||||
|
System.out.println("");
|
||||||
|
for (int k = 1; k <= 4 - i; k++) {
|
||||||
|
System.out.print(x);
|
||||||
|
x++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user