Skip to content

Commit 6698fef

Browse files
committed
Do-WHILE Loop
1 parent 1e152d6 commit 6698fef

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

10_do_while_loop.dart

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

0 commit comments

Comments
 (0)