<script language=JavaScript> document.write(" "); for(var i=1;i<=9;i++) { document.write(" "); for(var j=1;j<=9;j++) { if(j<=i) document.write(" "+i+"*"+j+"="+i*j+"") else document.write(" "+" "+""); } document.write(" ") } document.write(" "); </script>