9.____________________________________
#include
#include
using namespace std;
int main()
{
int a, b, c, x;
cin >> x;
if ( x<=999 ) {</p>
a = (x / 100)%10;
b = (x / 10)%10;
c = (x / 1)%10;
cout << "Число десятко - " << a <<b <<endl;</p>
cout << "Произведение цифр - " << a*b*c <<endl;</p>
}
return 0;
}
10.____________________________________
#include
using namespace std;
int main()
{
int a, b, c, d, x;
cin >> x;
if (x<=9999) {</p>
a = x / 1000;
b = (x / 100)%10;
c = (x / 10)%10;
d = (x / 1)%10;
cout << d<<c<<b<<a << endl;</p>
}
return 0;
}
11.____________________________________
#include
#include
using namespace std;
int main()
{
int a, b, c, d, x;
cin >> x;
if (x<=9999) {</p>
a = x / 1000;
b = (x / 100)%10;
c = (x / 10)%10;
d = (x / 1)%10;
if ( b == 0){
cout <<a <<d <<c << endl;</p>
}else {
cout <<b <<a <<d <<c << endl;</p>
}
}
return 0;
}