RosettaCodeData/Task/Repeat/Mathematica/repeat.math
2023-07-01 13:44:08 -04:00

2 lines
69 B
Text

repeat[f_, n_] := Do[f[], {n}];
repeat[Print["Hello, world!"] &, 5];