DEV Community

JEGADESHWARAN B
JEGADESHWARAN B

Posted on

Control flow statement

What is control flow statement?
It decide which statement is executes, how many times it's runs, which order have to runs

What are the types of control flow statement?

  1. Decision making statement
  2. Looping statement
  3. Jumping statement

What is Decision making statement?
Decision making statement is take a decision based on the condition

What are the type of decision making statement ?

  1. If statement
  2. Else statement
  3. Else if statement
  4. Switch statement

What is if statement?
It executes, when if condition is true.

What is else statement?
It executes, when if condition is false.

What is else if statement?
If we want to check multiple conditions we can use else if statement.

Top comments (0)