Fixed my old formatting and patched things that were left as-is due to burnout and laziness

This commit is contained in:
2024-12-06 15:14:33 +03:00
parent 02068890a5
commit 69d40c2dfb
7 changed files with 85 additions and 71 deletions

View File

@@ -1,5 +1,4 @@
#include <iostream>
using namespace std;
int fib(int n)
{
@@ -11,7 +10,11 @@ int fib(int n)
int main()
{
int n; cin >> n;
setlocale(LC_ALL, "Russian");
int n;
cout << fib(n);
}
std::cout << "Введите число n для определения числа Фибоначчи: ";
std::cin >> n;
std::cout << fib(n) << std::endl;
}