RosettaCodeData/Task/Repeat/Mathematica/repeat.math

3 lines
69 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
repeat[f_, n_] := Do[f[], {n}];
repeat[Print["Hello, world!"] &, 5];