#include
#include<math.h>
using namespace std;
int main()
{
int newno,n,i,count;
cin>>n;
int r=0;
newno =0;
int p=10;
while(n>=0)
{
count++;
n=n/10;
}
count=count-1;
while(n>0)
{
r=n%10;
for(i<=count;i=0;i--)
{
newno=newno+pow(p,count);
}
n=n/10;
}
cout<<newno;
return 0;
}
WHY DOES IT NOT RUN??
ALSO PLEASE PROPOSE THE EFFICIENT WAY TO SOLVE IT ALONGWITH ITS ALGORITHM.