Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ for loop

// i doesn't have to be defined as i, it could be any letter or word
// i < 10 means the code will loop 10 times before it ends
// i always starts at 0 unless you define it
// i++ means it increments by 1 every loop, can be any math function
for (int i; i<10; i++){
    // Your code
}
// Great website to learn cpp: http://learn.onlinegdb.com/c%2B%2B_loops
Source by www.facebook.com #
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
2+4 =