Browse Source

docs(fibonacci2): correct grammar

DEV-3198-new-go-exercise-get-digit-len
davhojt 2 years ago committed by Dav Hojt
parent
commit
0153008c69
  1. 25
      subjects/fibonacci2/README.md

25
subjects/fibonacci2/README.md

@ -4,27 +4,15 @@
Complete the body of the **function** `fibonacci`.
This function receives a number `n` and returns the `n`th number in the fibonacci series.
The Fibonacci Series starts like this: 0, 1, 1, 2, 3, 5, 8, 13 etc...
### Recommendation
Videos designed to give **hints** are assigned to each quest. It is strongly suggested to watch them as you go.
### Notions
- [Primitives](https://doc.rust-lang.org/stable/rust-by-example/primitives.html)
- [Functions](https://doc.rust-lang.org/stable/rust-by-example/fn.html)
### Expected function
```rust
pub fn fibonacci(n: u32) -> u32 {
}
```
This function receives a number `n` and returns the `n`th number in the fibonacci series.
The Fibonacci Series starts like this: 0, 1, 1, 2, 3, 5, 8, 13 etc...
### Usage
Here is a possible test for your function:
@ -50,3 +38,8 @@ The element in the position 22 in fibonacci series is 17711
The element in the position 20 in fibonacci series is 6765
$
```
### Notions
- [Primitives](https://doc.rust-lang.org/stable/rust-by-example/primitives.html)
- [Functions](https://doc.rust-lang.org/stable/rust-by-example/fn.html)

Loading…
Cancel
Save