Thanks!

Recommended Answers

All 2 Replies

I think you only need 2 loops to do it
I suggest you do it in pencil and paper first and check the algorithm before coding :)

Thanks!

Glad that's solved but please next time post a reply for your thread instead of changing the whole original post

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.