public class Main {
public static void main(String[] args){
for(int i = 1; i <= 3; i++){
for(int j = 0; j < i; j++)
System.out.print(i);
System.out.println();
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
public class Main {
public static void main(String[] args){
for(int i = 1; i <= 3; i++){
for(int j = 0; j < i; j++)
System.out.print(i);
System.out.println();
}
}
}