#include<iostream>
#include<math.h>
usingnamespace std;
int main()
{
int a, b, c, f=0;
cout << "Enter an integer: ";
cin >> a;
for (int i = 0; i < 1; i++)
{
f++;
c = pow(10, f);
b = a%c;
if (b == a)
i++;
i--;
}
cout << "Number of digits is " << f << ".\n";
for (int i = f - 1; i >= 0; i--)
{
c = pow(10, i);
cout << (a / c) % 10 << "\t";
}
cout << endl;
system("pause");
return 0;
}