Nested for loops : For : Statement Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Statement » For »

 

Nested for loops


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

        var j:Number;
        for (var i:Number = 0; i < 3; i++){
          trace(i);
          for (j = 100; j > 97; j--){
            trace("t" + j);
          }
        
    }
  }
}
0
    100
    99
    98
1
    100
    99
    98
2
    100
    99
    98

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Statement
» For