Issue NoDescription Line Detail
1 Input valid 9 `[Link]()` can throw an exception for invalid input.
2 Incorrect F 20 `tempNthTerm = n1 - n2` should be `tempNthTerm = n1 + n2`.
3 Off-by-one 20 `i <= n - 1` should be `i <= n` to include all terms.
4 Variable 'n 3 Variable shadowing can cause unexpected behavior.
5 Improper us 13, 15, 17 `[Link]()` should be replaced with `[Link]()` for readability.
6 Scanner res 8 `scanner` is not explicitly closed, which may lead to resource leaks.
[Link]()` for readability.
source leaks.