Fixed my old formatting and patched things that were left as-is due to burnout and laziness
This commit is contained in:
12
alg_4_5.cpp
12
alg_4_5.cpp
@@ -1,5 +1,4 @@
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int f(int n)
|
||||
{
|
||||
@@ -10,6 +9,11 @@ int f(int n)
|
||||
|
||||
int main()
|
||||
{
|
||||
int n; cin >> n;
|
||||
cout << f(n);
|
||||
}
|
||||
setlocale(LC_ALL, "Russian");
|
||||
int n;
|
||||
|
||||
std::cout << "Введите число n для определения значения функции Дейкстры: ";
|
||||
std::cin >> n;
|
||||
|
||||
std::cout << "Значение функции Дейкстры: " << f(n) << std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user