What Is While Statement?
“While statement” loops through a block of code if the specified condition is true.
“While statement” checks the condition first. If the condition is true, run the statement, then continue to run next loop…… until the condition is false, stop the loop.