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

This commit is contained in:
Aadit Agrawal 2024-08-10 09:47:35 +05:30
parent a48eede8ad
commit ee1a31b5e1
5 changed files with 103 additions and 0 deletions

View file

@ -0,0 +1,14 @@
public class LadderForEach {
public static void main(String args[]){
int[] array = {1,2,3,4,5};
for(int i: array){
for (int j = 0; j<i; j++){
System.out.print(i+" ");
}
System.out.println("");
}
}
}