I wanna get string and shift i in right all af letter in string.cow can i write it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I wanna get string and shift i in right all af letter in string.cow can i write it?

for example i get:abcd and i=5 output:efgh

20th Mar 2018, 4:02 PM
mohamadjavad
mohamadjavad - avatar
3 Answers
20th Mar 2018, 4:13 PM
Pedro Demingos
Pedro Demingos - avatar
+ 2
Yeah, I had put the modulo in the wrong place. Fixed.
20th Mar 2018, 5:22 PM
Pedro Demingos
Pedro Demingos - avatar
+ 1
if i bigger than for example 20 and we have x in input.we have error
20th Mar 2018, 4:30 PM
mohamadjavad
mohamadjavad - avatar