repl.it
@ArjunArunkumar/

Fibonacci series generator

C

made this for my maths project

fork
loading
Files
  • main.c
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>

int main(void) {
  int numberone;
  int numbertwo;
  int storageone;

  numberone = 1;
  numbertwo = 1;

  while(numbertwo < 99999){
	  storageone = numberone + numbertwo;
	  printf("%d \n", numberone);
	  numberone = numbertwo;
	  numbertwo = storageone;
  }
 
  return 0;
}