Best Download Sites Login
Site Login

Fibonacci Sequence

Description
Displays the Fibonacci Sequence of Numbers as entered by the user. Warning: This is very processor intensive, do not enter a large number....View A Script Demo


Do you find it confusing setting up these script?
Java Scripts Magic can do all the hard work for you all At The Touch Of A Button.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="TextPad 4.4">
<LINK href="general.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!-- Original:  Julian Rivera Pineda (xtecuan@secureroot.com) -->
<!-- Web Site:  http://xtecuan.8m.com -->

<!-- Begin
function f(n) {
var s = 0;
if(n == 0) return(s);
if(n == 1) {
s += 1;
return(s);
}
else {
return(f(n - 1) + f(n - 2));
   }
}
function show(n) {
var i;
for(i = 0; i <= n; i++) {
f1.s.value += "  " + f(i);
   }
}
//  End -->
</script>

</HEAD>

<BODY Background=../graphics/grayback.jpg>
<center><BR><BR><BR>
<form name=f1>
Computations: <input type=text size=4 name="n">
<input type=button value="Compute" onClick="show(f1.n.value);">
<input type=reset value="Reset"><br>
Sequence: <input type=text size="100" name="s">
</form>

</center>
</BODY>
</HTML>
 

Business Proposal If you have a Business Proposal that you think may be of interest to us here at Best Download Sites please contact us to discuss the matter in further detail