Sunday, April 14, 2013

Nesting of if…else statement

Nesting of if…else statement

If(condition..1)
{
          If(condition..2)
         {
         If condition 2 is true execute this part
         }
        else
         {
        If condition 2 is false execute this part
        }
}
else
{
If condition 1 is false execute this part
}


If condition 1 is true execution goes to the 2 condition  if condition 2 is true then its part is executed
If its false then else part is executed

And if condition 1 is false then directly last else part is executed

1 comment:

  1. Harrah's Cherokee Casino & Hotel - Mapyro
    Get directions, 서귀포 출장마사지 reviews and information for Harrah's 광주광역 출장안마 Cherokee 목포 출장마사지 Casino & Hotel in Cherokee, NC. Harrah's Cherokee 부천 출장안마 Hotel has 3 hotel towers with 오산 출장안마 1,108 guest rooms.

    ReplyDelete