HTML contoh chap6 mudul lab contoh7

<html>
<body>
<script type="text/javascript">
i = 0
while (i <= 5)
{
document.write("The number is " + i)
document.write("<br>")
i++
}
</script>
<p>Explanation:</p>
<p><b>i</b> equal to 0.</p>
<p>While <b>i</b> is less than , or equal to, 5, the loop will continue to
run.</p>
<p><b>i</b> will increase by 1 each time the loop runs.</p>
</body>
</html>
Category: 0 komentar

0 komentar:

Posting Komentar