Upload files to "OOP/Java/Lab/Week3"

This commit is contained in:
Aadit Agrawal 2024-08-10 11:20:17 +05:30
parent 490ff117eb
commit ff230bd039
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,12 @@
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("");
}
}
}