13 lines
183 B
Text
13 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");
|