From 8c99163ff3b63cf204d75af45b00fc392b9d6b1e Mon Sep 17 00:00:00 2001 From: Misha Date: Tue, 30 Sep 2025 15:18:17 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C=20pr?= =?UTF-8?q?ofit=5F6=5Fmonths.cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- profit_6_months.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 profit_6_months.cpp diff --git a/profit_6_months.cpp b/profit_6_months.cpp deleted file mode 100644 index b901bd5..0000000 --- a/profit_6_months.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include -#include -using namespace std; - -int main() { - setlocale(0, ""); - const int n = 6; - srand(time(0)); - - double arr[n] = { 0 }; - double sum = 0; - - cout << "Input your profit values every month\n"; - for (int i = 0; i < n; ++i) { - cout << "Month " << i + 1 << ": "; - cin >> arr[i]; - } - - for (int i = 0; i < n; ++i) { - sum += arr[i]; - } - - cout << "Your summary profit is " << sum << endl; - - return 0; -} -