Times Table : Time : Development JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Development » Time »

 

Times Table



<html>
<head>
<script language="JavaScript">
<!--
function TimesTable(number) {
  var thisLoop = 1;
  document.writeln("Times Table for: <b>" + number + "</b><hr><pre>");
  while (thisLoop <= 12) {
        document.writeln(thisLoop + " x " + number + " = " (thisLoop * number));
        thisLoop++;
  }
  document.writeln("</pre>");
}
TimesTable(prompt("Enter a number",10));
//-->
</script>
</head>
</html>

           
       



-

Leave a Comment / Note


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

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Development
» Time