What is loop and its types with example?

Thê Hy

New member
What is loop and its types with example?
Answer
C – Loops

Sr.No.

Loop Type & Description

1

while loop Repeats a statement or group of statements while a given condition is true. It tests the condition before executing the loop body.

2

for loop Executes a sequence of statements multiple times and abbreviates the code that manages the loop variable.
 

Tìm kiếm

Back
Top