Therefore, we can construct a if statement based on the above structure.
Based on the above example, the if-than-else expression
is extended to if-than-elseif-else expression which contains more actions.
The if statement is a fundamental statement in
programming. Using if statement, we can define a criterion and the relevant
actions, or check a specified condition is achieved or not. For example, we define
a convergent criterion for iterations.
沒有留言:
張貼留言