Need help with fibonacci sequence in c
Below is my code. My problem is that when i run it, it asks me how many times i want to run, i input my number and hit enter.... and nothing else happens.
Code:
#include <stdio.h>
int main() {
int num1 = 0;
int num2 = 1;
int num_t = 0;
printf("Enter the number of times you want the Fibonacci sequence to be run: \n");
scanf("%d", &num_t);
int num_r = 0;
while(num_r <= num_t); {
printf("Here is the next number: %d ", num1);
printf("Here is the next number: %d ", num2);
num1 = num1 + num2;
num2 = num1 + num2;
num_r += 1;
}
return 0;
}