commit 56ba46a3ac8009c57ec21676e1fe0c4eb4ba3437 Author: Игорь Date: Fri Dec 20 17:16:47 2024 +0000 Add 2024/task1.cpp diff --git a/2024/task1.cpp b/2024/task1.cpp new file mode 100644 index 0000000..b5522c2 --- /dev/null +++ b/2024/task1.cpp @@ -0,0 +1,18 @@ +#include +using namespace std; + +int main () +{ + int a; + + cin >> a; + + cout + << (a / 100) // 3 + << (a % 10) // 1 + << (a / 10 % 10) // 2 + ; + + + return 0; +} \ No newline at end of file