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