Jul 16

To show a multiway decision based several condition, we use the else if statement.

if (condition_1)

{

statements_1;

}

else if(condition_2)

{

statements_2;

}


…………

else if(condition_n)

{

statements_n;

}

else

{

statements;

}

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Blogplay
  • LinkedIn
  • MySpace
  • Reddit
  • RSS
  • Twitter

written by Shweta