From 47a8a02b0ef750c9104f64cb4d9ccdc676eef6de Mon Sep 17 00:00:00 2001 From: Misha Date: Tue, 9 Sep 2025 20:12:57 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20tak3.cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tak3.cpp | 54 +++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/tak3.cpp b/tak3.cpp index fc4219f..169fe36 100644 --- a/tak3.cpp +++ b/tak3.cpp @@ -1,28 +1,28 @@ -#include -using namespace std; - -int main() { - setlocale(0, ""); - int n; - int x = 0; - int m = 1; - - cout << "Ââåäiòü öiëå ÷èñëî: "; - cin >> n; - - int old = n; - - for (int i = n; i > 0; i = i / 10) { - int d = i % 10; - - if (d != 3 && d != 6) { - x = x + d * m; - m = m * 10; - } - } - - cout << "Ââåäåíå ÷èñëî: " << old << endl; - cout << "Íîâå ÷èñëî (áåç öèôð 3 i 6): " << x << endl; - - return 0; +#include +using namespace std; + +int main() { + setlocale(0, ""); + int n; + int x = 0; + int m = 1; + + cout << "Введiть цiле чиÑло: "; + cin >> n; + + int old = n; + + for (int i = n; i > 0; i = i / 10) { + int d = i % 10; + + if (d != 3 && d != 6) { + x = x + d * m; + m = m * 10; + } + } + + cout << "Введене чиÑло: " << old << endl; + cout << "Ðове чиÑло (без цифр 3 i 6): " << x << endl; + + return 0; } \ No newline at end of file