Loops: Part 1

Loops are used when we want a set of statements to execute until certain condition is satisfied or fulfilled. Loops can also be used when we want to take many inputs from the user. A while loop executes a block of statements as long as the condition remain true. The syntax of a while loop … Continue reading Loops: Part 1