피보나치 수열인데 3,5 부터 시작해서 출력하는것입니다



#include <iostream>

#include <iomanip>

using namespace std;

void fib();

int next(int a,int b);

int main(){

fib();

return 0;

}


void fib(){

int a, b, c, d, e;

a = 3, b = 5;

c = next(a, b);

d = next(b, c);

e = next(c, d);

cout << a << b << c << d << e;

}

int next(int a, int b){

int c;

c = a + b;

return c;

}