From f6b96569de41c6933d1e32820594a3ab44e277e5 Mon Sep 17 00:00:00 2001 From: shulevskyi <90912603+shulevskyi@users.noreply.github.com> Date: Wed, 24 Nov 2021 09:54:15 +0200 Subject: [PATCH] Update func_sum.cpp --- func_sum.cpp | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/func_sum.cpp b/func_sum.cpp index dd3a39e..57c0c04 100644 --- a/func_sum.cpp +++ b/func_sum.cpp @@ -1,16 +1,20 @@ #include -#include +#include using namespace std; -using std::cout; -using std::array; -int prices[] = {40,30,50}; -int adding(int x[]) { - int to_pay = 0; - for (int i = 0; i()); + +cout << total; +}