More Loops; Arrays ITP 165 â Fall 2015 Week 4, Lecture 1 Nesting Loops â A complex example bool tryAgain = true; while (tryAgain) { int x = -1; while (x < 0) { std::cout…