for while do-while Such a loop doesn't exist
for while do-while Other structure
1: 2:
while is for integer numbers, do-while is for variables of floating point type. do-while is for integer numbers, while is for variables of floating point type. In loops of type do-while the condition is checked in the beginning, whereas in loops of type while the condition is checked at the end. In loops of type while the condition is checked in the beginning, whereas in loops of type do-while the condition is checked at the end.
This loop will never finish We should use a loop of do-while instead. We should use a for-loop instead. The condition cannot contain variables of type float.