0


If Statement - It is used to execute an instruction or sequence/block of instructions only if a condition is fulfilled.

  1. Simple if statement
  2. if… else statement
  3. Nested if… else statement
  4. Else if statement 
Simple if statement - It is used to execute an instruction or block of instructions only if a condition is fulfilled.
Syntax:
                        if (condition)
            statement;

If more than one statement:
        if (condition)
            {
            block of statements;
             }

Next
This is the most recent post.
Previous
Older Post

Post a Comment

Comment Rules :
1. Do not post Adult/illegal Links.
2. Try to comment in only English Language.
3. Do not post other website's links which are useless.
4. Your Comment should be based on the Topic for other queries Kindly Visit our Contact Us Page.
5. Do not use Abusive Language.
6. Respect each other.
Thank You for following the rules. Please Comment....

 
Top