topical media & game development

talk show tell print

basic-javascript-10-CalcFactorialTopFrame.htm / htm



  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
  <html>
  <head>
  <title>Example</title>
  <script language="JavaScript" type="text/javascript">
  function calcFactorial(factorialNumber)
  {
     var factorialResult = 1;
     for (; factorialNumber > 0; factorialNumber--)
     {
        factorialResult = factorialResult * factorialNumber;
     }
  return factorialResult;
  }
  </script>
  </head>
  <frameset COLS="100%,*">
     <frame name="fraCalcFactorial" src="CalcFactorial.htm">
  </frameset>
  </html>
  


(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.