1.पिछले 1 वर्ष में आिके शहर में जो िररवर्नष हुए उनमें आिको सबसे अच्छा क्या लगा? ककसी एक के बारे में ललखकर उसका चित्र भी लगाइए।
Attachments:
Answers
Answered by
2
Explanation:
For example, let's say we want to show a message 100 times. Then instead of writing the print statement 100 times, we can use a loop.
That was just a simple example; we can achieve much more efficiency and sophistication in our programs by making effective use of loops.
There are 3 types of loops in C++.
for loop
while loop
do...while loop
In the previous tutorial, we learned about the C++ for loop. Here, we are going to learn about while and do...while loops.
Similar questions