5.5.2 Nested If..else

If (condition1)
{
Code to be executed if condition 1 is true
}
else if (condition2)
{
Code to be executed of condition 2 is true
}
else
{
Code to be executed if condition 1 and condition 2 are not true
}

• If there is several levels of indentation, each level should be indented the same additional amount of space

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Get Alert

    Enter your email address:

  • Categories

  • Twitter

Subscribe Now!
Sign-up for our email newsletter and get free job alerts, current affairs and GK updates regularly.

Subscribe Here

Popup Dialog Box Powered By : XYZScripts.com
  • RSS
  • Facebook
  • Google+
  • Twitter