The if statement (selection structure)

Selection structure (if statement)

  There are three formats if statement

The first if statement format:

if (expression) { 
    statements member 
    }

  Implementation process

    First, determine the relationship between the expression to see the result is true or false

    If the statement is true on the implementation of the body

    If false statement is not executed body

The second format if statement:

  

  

Guess you like

Origin www.cnblogs.com/fyf79515/p/11366426.html