Skip to content

Commit 5b13bf8

Browse files
author
codehouseindia
authored
Merge pull request codehouseindia#533 from Babita-21/patch-1
Create age.java
2 parents 75d7a9a + eb676ad commit 5b13bf8

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

age.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//Subscribed by CODEHOUSE
2+
3+
class Main {
4+
public static void main(String[] args) {
5+
6+
// create an array
7+
int[] age = {12, 4, 5};
8+
9+
// loop through the array
10+
// using for loop
11+
System.out.println("Using for Loop:");
12+
for(int i = 0; i < age.length; i++) {
13+
System.out.println(age[i]);
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)