Loops in C++
What is a Loop?
Loops are used to repeat a block of code multiple times.
google.com, pub-8434817042454839, DIRECT, f08c47fec0942fa0
Types of Loops
- for loop
- while loop
- do-while loop
Example (for loop)
for(int i = 1; i <= 5; i++) {
cout << i;
}
cout << i;
}
Use Case
Repeating tasks like printing numbers, processing data

