package{ public class MyMath{ public static function factorial(index:uint) : uint { var total:uint = index; if(index > 0){ total += MyMath.factorial(index - 1); } return total; } } }
trace(MyMath.factorial(3));
You mean:total *= MyMath........
1 comments:
You mean:
total *= MyMath........
Post a Comment