Repeat a value a number of times
Exercise Type: Implementation
Instructions
Part 1
Write a bit of code with a while() loop repeat the value "This is fine!", 10 times and combine them to a vector!
Part 2
Write a function that does the repetition of any given value, as many times as you like!
| name | Repeat() |
| params | x: what to repeat |
n: numeric, the times of repeat | |
| return | A vector of repeated values |