Previous
Functions
2 / 6
Next
Function parameters
Hint
Define a function called repeat
with two parameters message
and n
.
The function should print the message exactly n
times using a while loop.
Then call the function to print "Hello, world!" five times.
Help
Solve
Reset
Test results
Test result #
Expected output
Your output