1.while loop structure
Initialization conditions;
while (loop condition) {
Iteration conditions;
Execute statement;
}
While and for loops can be converted to each other.
2. do……while loop structure
Initialization conditions
do{
Iteration condition
Execute statement
}while (loop condition);
do……