13
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

for文で九九の表を作る

Last updated at Posted at 2014-11-05

##この投稿の概要
jsの授業の課題で作ったので、記録のため(画像アップロードのためにも…)投稿します:)

 スクリーンショット_2014-11-05_21_33_27.png

##つくり方

<!DOCTYPE html>
<html lang="ja">
<head>
    <meta charset="utf-8">
 <title>九九の表だよ〜</title>
</head>

<body>
<script type="text/javascript">

 document.write("<center>");
 document.write("<h1>九九の表</h1>");
 document.write("<table border>");

 for(var i = 1 ; i < 10 ; i++) {
    document.write("<tr>");

    for(var j = 1 ; j < 10 ; j++) {
      document.write("<td>",  i*j  , "</td>");
    }

    document.write("</tr>");

 }

 document.write("</table>");
 document.write("</center>");

</script>
</body>
</html>
13
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?