For...in
foreach ()
Infinity Infinite Big alert (1/0);
-infinity Infinite Small alert ( -1/0);
Break (interrupted):
1, the application in the switch statement, as long as the Break,switch statement end.
2, the application in the cycle, the end of this layer cycle, continue the next layer of circulation. As long as the break to jump out of this cycle, the other statements in this cycle will not be executed
Continue
Use in a loop, end this cycle, and go to the next loop
Loop nesting (two layers):
For the while do.. While
for () {
for () {
}
}
Execution process
The outer loop executes once, and the inner loop finishes
Print graphics are:
The outer loop controls the row, and the inner loop controls the column
Formula: Number of First planet number + (i-1) * (difference of adjacent two planets)
7+ (i-1) * ( -2) =7-2*i+2=9-2*i
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service