Directory:I. Conditional JUDGMENT Statement-ifTwo. Looping statements-while & forThree. Break & Continue statement.Four. ExercisesBody:One, conditional judgment statement-if:1) The first type of syntax:If condition: code block2) The second type of
Shell programming control structure: expr, let, for, while, until, shift, if, case, break, continue, function, select
1. expr calculates the integer variable value
S = 'expr 2 + 3'
The operator numbers and parameters must be separated by spaces;
2.
1. expr computes the integer variable valueS= ' Expr 2 + 3 'The arithmetic symbol and the parameter must have the space separate;2. Let command let s= (2+3) echo $s 3, for statement
For variable in list
------Java Training, Android training, iOS training,. NET training, look forward to communicating with you! -------"Loop Structure"1 , circular structure Introduction:Loops are executing the same block of code again and again2. Several conditions
Use newGo--Define variable, @ startDECLARE @hello as varchar (20)--Assigned valueSet @hello = ' Sales Department '--You can use variables as parameter values for the selection criteria--select *from bumen where name [email protected]Select does not
What is a cyclic structure? What are the elements?Loop structure refers to code that can be executed repeatedlyElements: 1, keywords, 2, to be repeatedly executed code; 3, Loop end condition.What are the loop statements that can be implemented? What
Python can cause a loop to break if it is return in the while loop[email protected] root]# cat test_while_return.pyCount = 0while (Count print ' The count is: ', countCount = Count + 1Print "Good bye!"print '-' *20while (Count >= 3):print ' The
If statement:1, if ... elif elif ... else, where else is optional, if and elif have the same indentation, at the end of a line there is a colonFor statement:2. Unlike C and Pascal, Python's for statement iterates through all the item in the sequence
5.3.1 Use the break statement
In Java, the break statement has three functions. First, you can see that in the switch statement, it is used to terminate a statement sequence. Second, it can be used to exit a loop. Third, it can be used as an
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.