Skip to content

Commit 1e152d6

Browse files
committed
WHILE Loop
1 parent f3a85b5 commit 1e152d6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

9_while_loop.dart

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
void main() {
3+
4+
// WHILE Loop
5+
// WAP to find the even numbers between 1 to 10
6+
7+
var i = 1;
8+
while (i <= 10) {
9+
10+
if (i % 2 == 0) {
11+
print(i);
12+
}
13+
14+
i++;
15+
}
16+
}

0 commit comments

Comments
 (0)