Skip to content

Commit 7330865

Browse files
committed
Added contents been a while
1 parent 45791b6 commit 7330865

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

main.dart

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,36 @@ void main() {
44
int x = 12;
55
example.printRslt(x);
66

7-
int y = 11;
8-
int z = 12;
7+
int y = 14;
8+
int z = 21;
99
example.calcNum(y, z);
10+
11+
for (int i = 0; i < 5; i++) {
12+
print(i);
13+
}
14+
15+
var list = [1, 2, 4, 8];
16+
17+
for (int p = 0; p < list.length; p++) {
18+
print(list[p]);
19+
if (list[p] == 8) {
20+
print("complete");
21+
}
22+
}
23+
24+
int val = 0;
25+
26+
while (val < 11) {
27+
if (val % 2 == 0) {
28+
print(val);
29+
}
30+
val++;
31+
if (val == 11) {
32+
print("the end");
33+
}
34+
}
35+
36+
for (int cnt = 0; cnt < 6; cnt++) {
37+
print("*" * cnt);
38+
}
1039
}

0 commit comments

Comments
 (0)