The #Mastery20 is about more loops, and in this case I’ll show you how to do a for loop. The “for loop” loops from one number to another number and increases by a specified value each time.
The syntax of the “for loop” is the next:
for (start value; end condition; increase value){
statements;
}
This time I did a new code because I don’t have used it yet. The program below print a numbers from 1 to 10.
Use of loops – “for” by Gonzalo Mata is licensed under a Creative Commons Attribution 4.0 International License.