Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
14
Task/Repeat/Dart/repeat.dart
Normal file
14
Task/Repeat/Dart/repeat.dart
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
void proc() {
|
||||
print(" Inside loop");
|
||||
}
|
||||
|
||||
void repeat(Function func, int times) {
|
||||
for (var i = 0; i < times; i++) {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
void main() {
|
||||
repeat(proc, 5);
|
||||
print("Loop Ended");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue