Task

Write a procedure which accepts as arguments another procedure and a positive integer.

The latter procedure is executed a number of times equal to the accepted integer.




 
Func Main
     times(5,:test)
 
Func Test
     see "Message from the test function!" + nl
 
Func Times nCount, F
     for x = 1 to nCount
         Call F()
     next
 