<html>
<body>
<script type="text/vbscript">
dim I,N,A,B,C
n=cint(inputbox("Enter the no of terms you want"))
a=1
b=2
document.write(a&"<br>")
document.write(b&"<br>")
for i=3 to n
c=a+b
document.write(c&"<br>")
a=b
b=c
next
</script>
</body>
</html>
<body>
<script type="text/vbscript">
dim I,N,A,B,C
n=cint(inputbox("Enter the no of terms you want"))
a=1
b=2
document.write(a&"<br>")
document.write(b&"<br>")
for i=3 to n
c=a+b
document.write(c&"<br>")
a=b
b=c
next
</script>
</body>
</html>
No comments:
Post a Comment