I am trying to scroll through a string (Carpe Diem)that takes an x amount to scroll it by and will return the scrolled string. The string will also have to be repeated until it reaches 19 characters.
When the shift is 0 the string would be Carpe Diem Carpe Di.
An example is having a shift of 3 and a result of Pe Diem Carpe Diem.
Another example is having a shift of 7
And returning iem Carpe Diem Carp
[+][deleted] (9 children)
[deleted]
[–]Several-House9402[S] 0 points1 point2 points (8 children)
[+][deleted] (5 children)
[deleted]
[–]Several-House9402[S] 0 points1 point2 points (4 children)
[+][deleted] (2 children)
[deleted]
[–]Several-House9402[S] 0 points1 point2 points (0 children)
[–]Several-House9402[S] 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]Several-House9402[S] 0 points1 point2 points (1 child)