0
What is loop
3 odpowiedzi
+ 5
Suppose you have some statements in a code which should be executed multiple times. Instead of writing those statements as many times as needed, you can use a loop and set a condition so that those statements will be executed as many times as needed and stops when the condition becomes false.
0
"A loop statement allows us to execute a statement or group of statements multiple times."
https://www.tutorialspoint.com/cplusplus/cpp_loop_types.htm
0
if u want to execute a statement multiple times then its better to use loop than writing the statement again