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