1. Anasayfa
  2. Javascript

Javascript For Döngüsü ile Tablo Oluşturma


0

Yukarıdaki ekran görüntüsünü oluşturan programı javascript programlama dilinde for dögüsü ile yapın

<html>
<body>
<script type=text/javascript”>
var i,a;
document.write(<table border=1>);
for (i=1;i<=4;i++)
{
document.write(<tr>);
    for(a=1;a<=4;a++)
    {
        if(a==i)
        {
        document.write(<td bgcolor=green >Amasya</td>);
        }
        else
        {
            document.write(<td>Amasya</td>);
        }
    }
document.write(</tr>);
}
document.write(</table>);
</script>
</body >
</html >

Bu İçeriğe Tepkin Ne Oldu?
  • 2
    ba_ar_l_
    Başarılı
  • 1
    gayet_yi
    Gayet İyi
  • 0
    te_ekk_rler
    Teşekkürler
  • 1
    anlamad_m
    Anlamadım
  • 1
    yetersiz
    Yetersiz
Subscribe
Bildir
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Yorum
Inline Feedbacks
View all comments