Skip to content

Commit daa65cd

Browse files
authored
Create while_loop.md
1 parent 722183d commit daa65cd

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

while_loop.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# While loop in Java
2+
3+
while (condition) { <br />
4+
// code block to be executed <br />
5+
}
6+
<hr />
7+
8+
## Example
9+
10+
while (i < 10) { <br />
11+
text += "The number is " + i; <br />
12+
i++; <br />
13+
}

0 commit comments

Comments
 (0)