Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 849cbfe

Browse files
ankit-kumar-dwivedijakobkogler
authored andcommitted
fix incorrect position of code (#457)
1 parent 9804cd8 commit 849cbfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/algebra/fibonacci-numbers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ $$ \begin{array}{rll}
107107
\end{array}$$
108108
Thus using above two equations Fibonacci numbers can be calculated easily by the following code:
109109

110-
The above code returns $F_n$ and $F_{n+1}$ as a pair.
111110
```cpp
112111
pair<int, int> fib (int n) {
113112
if (n == 0)
@@ -122,6 +121,7 @@ pair<int, int> fib (int n) {
122121
return {c, d};
123122
}
124123
```
124+
The above code returns $F_n$ and $F_{n+1}$ as a pair.
125125
126126
## Periodicity modulo p
127127

0 commit comments

Comments
 (0)