As Norm mentioned, there is not need for a while if you only need the code to execute once. If you need the code to execute at least once, the use do{} while()