You should write a program or function that receives a positive integer N
as input and prints out the first N
characters of your code. If N
is larger than the length of your code you should continue output your code cyclically.
Reading your source code in any way and reading from file, stdio, etc. are disallowed.
Examples
(assuming your code is yourcode
)
Input => Output:
5
=> yourc
10
=> yourcodeyo
22
=> yourcodeyourcodeyour
Clarification
Your program should be at least 1 byte long.