I'm not quite sure how to do this.
pseudocode:
array1 = {"a","b", "c", "d", "e","f", "g","h", "i","j"} //there might be more values.
take c
loop =>c+3 =f
f+3 =i
i+3 =b
b+3 =e
......
end loop
I need to work this array1 as a circle and find the letters adding 3 (f, i, b, e, and more).
Use mod (%), then index can be any positive value and it will wrap around:
int index;
array1[index % array1.Length]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With