Writing small c++ program from a flow chart algorithm

http://i47.tinypic.com/m6nq1.jpg

I'm trying to write it in c++. But I really don't have a clue about writing that orderless loops. Can you give little hint about it? You don't need to write whole code, and I just need a little clue about it.
Topic archived. No new replies allowed.