do while : Do while : Statement Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Statement » Do while »

 

do while


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        var sum:Number = 10;
        do {
          sum += 40;
        while (sum < 10);
        trace(sum + " - surpassed 10")// Displays: 50 - surpassed 10
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Statement
» Do while