Saturday 25 January 2014

for loop

<html>
<head>
<title>
Program on For Loop
</title>
</head>
<script language=javascript>
var n=10,i=1
document.write("<center><font color=navy size=6>")
document.writeln("For Loop Example<br><br>")
for(i=1;i<=n;i++)
{
document.writeln(i+"<br>")
}
</script>
</html>

No comments:

Post a Comment