mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-15 19:30:07 +08:00
formatting source-code for d7af6fdc8c
This commit is contained in:
@@ -14,7 +14,8 @@
|
||||
/**
|
||||
* Recursively compute sequences
|
||||
*/
|
||||
int fibonacci(unsigned int n) {
|
||||
int fibonacci(unsigned int n)
|
||||
{
|
||||
/* If the input is 0 or 1 just return the same
|
||||
This will set the first 2 values of the sequence */
|
||||
if (n <= 1)
|
||||
@@ -25,7 +26,8 @@ int fibonacci(unsigned int n) {
|
||||
}
|
||||
|
||||
/// Main function
|
||||
int main() {
|
||||
int main()
|
||||
{
|
||||
int n;
|
||||
std::cin >> n;
|
||||
assert(n >= 0);
|
||||
|
||||
Reference in New Issue
Block a user