12 lines
269 B
Java
12 lines
269 B
Java
public class LadderFor {
|
|
public static void main(String args[]){
|
|
for(int i = 1; i<=5 ; i++){
|
|
for (int j = 0; j<i; j++){
|
|
System.out.print(i+" ");
|
|
}
|
|
System.out.println("");
|
|
}
|
|
}
|
|
|
|
}
|