MIT-Curricular/OOP/Java/Lab/Week3/SeqLadder.java

13 lines
288 B
Java

public class SeqLadder {
public static void main(String args[]){
int a=0;
for(int i = 1; i<5 ; i++){
for (int j = 0; j<i; j++){
System.out.print(++a+" ");
}
System.out.println("");
}
}
}