1.
#include
using namespace std;
int intrev(int x)
{
return x ? cout << x % 10, intrev(x / 10) + 1 : 0;<br>}
int main()
{
int val = 0;
cin >> val;
intrev(val);
system("pause");
return 0;
}
2.
#include
using namespace std;
int main()
{
int val = 230;
int mul = 1;
int temp = 1;
while (val != 0) {
temp = val % 10;
if (temp != 0)
mul *= temp;
val /= 10;
}
cout << "Res = " << mul << endl;<br> system("pause");
return 0;
}