### While Loops Flow Chart in Java

The while statement is used to repeat a block of statements while some condition is true. The condition must become false somewhere in the loop, otherwise it will never terminate.

- Get link
- Google+
- Other Apps

- Get link
- Google+
- Other Apps

A classic combinatorial problem is to place n queens on an n × n chess board so that no
queen threatens any other queen, that is, so that no two queens are on the same row,
column, or diagonal.
In order to reduce this solution space, it can now be assumed without loss of generality,
that the ith queen is placed in the ith row, thereby avoiding those two queens can be in
the same row.