Add 2024/task4.cpp

This commit is contained in:
2024-12-20 17:23:23 +00:00
parent 86a0094a2c
commit 93b4403b52

23
2024/task4.cpp Normal file
View File

@@ -0,0 +1,23 @@
#include <iostream>
using namespace std;
// "456" => "645"
int main ()
{
int a;
cin >> a;
int d1, d2, d3;
d1 = a % 10;
d2 = a / 10 % 10;
d3 = a / 100 % 10;
cout
<< d1
<< d3
<< d2
;
return 0;
}