#include <iostream>
#include <cstdlib>
#include <math.h>
using namespace std;
int main()
{
int c=0,fin,r;
int x,xx,n;
cout<<"Enter the number ; ";
cin>>x;
xx=x;
while(x!=0)
{
r=x%10;
c++;
x=x/10;
}
c--;
...