Fiboncci series

<html>
<head>
<title>Fiboncci series
</title>
</head>
<body bgcolor=brown text=yellow>
<h2 align=center>
<script language=javascript>
    var no1,no2,no3,i
    no1=0
    no2=1
    document.write(no1)
    document.write("<br>")
    document.write(no2)
    document.write("<br>")
    i=3
while (i<=20)
{
    no3=no1+no2
    document.write(no3)
    no1=no2
    no2=no3
    i++
    document.write("<br>")
}
</script>
</h2>
</body>
</html>

Comments

Popular posts from this blog

Use of CSS without frames

ASP.net code to display a report of client IP address,browser information etc.

Prime Number