Swap value in array

Frank
Frank
26 Points
13 Posts

Hi,

I have a problem as

a=[1,2,3,4,5,6,7]
if k=1
then a=[7,1,2,3,4,5,6]
if k=2 
then a=[6,7,1,2,3,4,5]
if k=3
then a=[5,6,7,1,2,3,4]
and so on...

I want logic or code how to do this

thanks

Views: 8128
Total Answered: 0
Total Marked As Answer: 0
Posted On: 19-Dec-2015 23:18

Share:   fb twitter linkedin
Answers
banner

Blog

Active User (0)

No Active User!
 Log In to Chat