JavaScript/2011년스터디/김수경 (rev. 1.3)
11일 ¶
<html>
<head>
<title>Javascript</title>
<script src="2011.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="2011.css" />
</head>
<body onload="s();">
</body>
</html>
function gugu(dan){
for(var i = 1; i <= 9; i++){
document.write(dan + " X " + i + " = " + (dan * i) + "<br/>");
}
}
function gu(){
for(var i = 2; i <= 9; i++){
gugu(i);
document.write("<br/>");
}
}
function g(){
for(var i = 2; i <= 9; i++){
for(var j = 1; j <= 9; j++){
document.write(i + " X " + j + " = " + (i * j) + "<br/>");
}
document.write("<br/>");
}
}