10 lines
156 B
C
10 lines
156 B
C
|
|
long long int fibb(int n) {
|
||
|
|
int fnow = 0, fnext = 1, tempf;
|
||
|
|
while(--n>0){
|
||
|
|
tempf = fnow + fnext;
|
||
|
|
fnow = fnext;
|
||
|
|
fnext = tempf;
|
||
|
|
}
|
||
|
|
return fnext;
|
||
|
|
}
|