Because the while loop checks the condition/expression before executing the block, it is also known as a pre-test loop.
Because the do-while loop is a posttest loop, its expression is tested after each iteration. Loops are classified into two types: "while loops" and "for loops." While loops repeat until a condition is met, for loops repeat a set number of times. For each loops, a type of for loop that repeats once for each item in a list, will also be covered. A while loop is a control flow statement in most computer programming languages that allows code to be executed repeatedly based on a given Boolean condition. The while loop can be viewed as a repeated if statement.
Learn more about loop here-
https://brainly.com/question/17067964
#SPJ4