Fibonacci Sequence
by webproger on 2022-05-15
<pre><script>
var x = 1;
var y = 1;
for(i=1; i<=100; i++) {
  document.writeln(i+' : '+(y/x));
  var z = x+y;
  if(y/x==z/y) break;
  else { x = y; y = z; }
}
</script></pre>