in reply to Re^2: Adding an new element after every 5th element in array
in thread Adding an new element after every 5th element in array

in my final example it is as easy as changing the number 3 to some other interval. Take the time to understand the solutions we provide and you will understand how to modify them to your needs.


Dave

  • Comment on Re^3: Adding an new element after every 5th element in array

Replies are listed 'Best First'.
Re^4: Adding an new element after every 5th element in array
by dvinay (Acolyte) on Nov 27, 2013 at 03:52 UTC

    Yeah Dave i got the solution, and have made changes for the count interval,when i posted the reply i didnt observe the last solution which you had made, then after that i saw it

    Thanks for the solution