python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
fixing Fibonacci numbers from a range of 1 to 50 Python
I have a set of numbers from 1 to 50 and from these numbers I have to find which are Fibonacci number, after that I have to find which of these numbers contain the number 1 and 2.
For example in my co...
Kamel Avad
Votes: 0
Answers: 1
I want to create a Fibonacci sequence using a for loop, but the integers are not adding up
procedure TForm1.Button1Click(Sender: TObject);
var
term1: integer;
term2: integer;
term3: integer;
j: integer;
begin
term1 := (0);
term2 := (1);
for j := 1 to 100 do;
begin
term3 ...
Superhero Fan2.0
Votes: 0
Answers: 2
Recursive Fibonacci MIPS
I started to read MIPS to understand better how my C++ and C code works under the computer skin. I started with a recursive function, a Fibonacci function.
The C code is:
int fib(int n) {
if(n == 0) {...
Pedro R.
Votes: 0
Answers: 1