How will I write a code with 2 arrays where 1st array has 50 items and 2nd array has 7 items
Condition: for each item in Array 1 will assign 1 item from array 2, then 2nd item in array 1 and 2nd item in array 2..... and so on,
when 7th item in array 2, array 2 will reset to 1st item for item 8th in array 1.
Sample output
a = 1a
b = 2a
c = 3a
d = 4a
e = 5a
f = 6a
g = 7a
h = 1a
i = 2a
j = 3a
k = 4a
l = 5a
.........
Currently my 2nd array loop isn't working at all :(