RosettaCodeData/Task/Repeat/Asymptote/repeat.asymptote
2026-04-30 12:34:36 -04:00

12 lines
183 B
Text

void proc() {
write(" Inside loop");
}
void repeat(void func(), int times) {
for (int i = 0; i < times; ++i) {
func();
}
}
repeat(proc, 5);
write("Loop Ended");