Decision making Statement​ (Control Statement)

 

Control Statement / Decision making Statement :

The decision-making statement is depending on the condition block needs to be executed or not which is decided by the condition.​

If the condition is "true" a statement block will be executed, if a condition is "false" then the statement block will not be executed.


Types of decision-making statement 

  •  if​
  •  if-else​
  •  switch​

if -Statement

else Statement

if else /else if Statement

Switch Statement



Post a Comment

0 Comments