#Mastery20

“For” loop is really useful to execute a part of code a specific number of times, this loop works like “while” loop, and it has a very simple structure that basicaly has init, condition, increment and the statement that will be executed the number of times that the user wants.

Here you can see some pictures about how this conditional works:

In the following link you will find a pp that was made by me to teach how to use this loop:

https://drive.google.com/file/d/0B-NM4ghaDXBvOGplRlNTTFlYVjQ/view?usp=sharing

And in this link you will find my c++ code:

https://drive.google.com/file/d/0B-NM4ghaDXBvd0NlMGFUVGhwQk0/view?usp=sharing

Finally, I share with you this link where I found useful information about this loop:

http://www.tutorialspoint.com/cplusplus/cpp_for_loop.htm

CC BY 4.0 #Mastery20 by Tania Pardo is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.