package com.andia.cm.parser.huawei.hlr.v9820;
public class TestClass {
public static void main(String[] args) {
for (int i = 0; i <= 7; i++) {
for (int j = 0; j < i; j++) {
System.out.print(i);
}
System.out.println(" ");
}
}
}
output :
1
22
333
4444
55555
666666
7777777
package com.andia.cm.parser.huawei.hlr.v9820;
public class TestClass {
public static void main(String[] args) {
for (int i = 1; i <= 3; i++) {
for (int j = 1; j <= 4; j++) {
System.out.print("X");
}
System.out.println(" ");
}
}
}
output
XXXX
XXXX
XXXX
package com.andia.cm.parser.huawei.hlr.v9820;
public class TestClass {
public static void main(String[] args) {
for (int i = 0; i <= 7; i++) {
for (int j = 0; j < i; j++) {
System.out.print("X");
}
System.out.println(" ");
}
}
}
output
X
XX
XXX
XXXX
XXXXX
XXXXXX
XXXXXXX
No comments:
Post a Comment