while loop | can be interchanged with a for loop  |  |
has example //Decrement n by 1 until n is 0 while (n != 0) { n = n - 1; } |  |
has purpose to repeat a computation by looping through that computation until a test has been satisfied |  |
has syntax while(condition) { // statements to keep executing while condition is true }  |  |
is a subtopic of Loops and Decision Making |  |
is a kind of loop statement |  |
statement | is terminated by a semicolon  |  |
should be not more than one line long if possible |  |
syntactic unit | has syntax rule bold = mandatory italic = non-terminal normal font = optional |  |