Wednesday, May 17, 2017

The while loop in HTML using java script

<html>
<body>
<script language= "javascript"type="text/javascript">
var i=0
while(i<=10)
{
document,write("the number is"+i)
document.write("<br/>")
i=i+1
}
</script>
</body>
</html>

No comments:

Post a Comment