Thứ Ba, 16 tháng 2, 2016

if...else flow chart with easy example

     if...else is used to check the condition and if the condition is true the if part statements are executed and if the condition is false the else part statements are executed.

Syntax

  if(condition)
  {
     Statements;
  }
  else
  {
     Statements;
  }


Flow Chart:




























Example:

if(10<5)
{
   alert("5 is big");
}
else
{
   alert("10 is big");
}




Example Program:- (Editor)


Editor is Loading...

Advertisement



Tags:
if else in allinworld99, allinworld99 to solve if else condition

0 nhận xét:

Đăng nhận xét