Display a sequence of square roots : Int : Data Type Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Data Type » Int »

 

Display a sequence of square roots


 

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

        for (var i:Number = 50; i > 2; i = Math.sqrt(i)) {
          trace(i);
        }
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Data Type
» Int