Skip to content

Commit 43b7b97

Browse files
While Loops
1 parent 531446b commit 43b7b97

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

21.While_Loops/Chapter_5.pdf

1.46 MB
Binary file not shown.

21.While_Loops/cwh_21_ch5_loops.java

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
public class cwh_21_ch5_loops {
2+
public static void main(String[] args) {
3+
System.out.println(1);
4+
System.out.println(2);
5+
System.out.println(3);
6+
7+
System.out.println("Using Loops:");
8+
int i = 100;
9+
while(i<=200){
10+
System.out.println(i);
11+
i++;
12+
}
13+
System.out.println("Finish Running While Loop!");
14+
15+
// while(true){
16+
// System.out.println("I am an infinite while loop!");
17+
// }
18+
}
19+
}

0 commit comments

Comments
 (0)