calendar

S M T W T F S
     12
3456789
10111213141516
17181920212223
24252627282930
31      
<< March 2024 >>




categories

selected entries

archives



PHPで九九の表を作った。

0
    Javascriptで九九の表を作るのを偶然見つけた。

    勉強中の身として、早速、チャレンジ、思うようにできた。

    次に、今度はPHPで作成してみた。

    これも無事完成。

    まだまだ幼稚園レベルですが、毎日奮闘中です。

    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>無題ドキュメント</title>
    </head>

    <body>
    <div align="center">
    <h1>九九</h1>
    <table border="1">
    <?php
     for($i=1; $i<10; $i++){
      echo "<tr>";
     
      for($j=1; $j<10; $j++){
        echo "<td width=¥"20¥" align=¥"center¥">". $i*$j . "</td>";
      }
      echo "</tr>"; 
     }
    ?>
    </table>
    </div>
    </body>
    </html

    | 1/3PAGES | >>

    links

    recent trackback

    recommend

    recommend

    recommend

    profile

    search this site.

    others

    mobile

    qrcode