topical media & game development

talk show tell print

basic-javascript-10-CalcFactorialTopFrame.htm / htm

  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  <script language="JavaScript" type="text/javascript">
  function calcFactorial(factorialNumber)
     var factorialResult = 1;
     for (; factorialNumber > 0; factorialNumber--)
        factorialResult = factorialResult * factorialNumber;
  return factorialResult;
  <frameset COLS="100%,*">
     <frame name="fraCalcFactorial" src="CalcFactorial.htm">

(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.