In this problem, given any natural number with dígits , we say that is the result of fattening if, for every between 1 and , . For instance, if we fatten 7 we get 7, if we fatten 32064781 we get 33366788, and if we fatten 9000000 we get 9999999.
Write a function
int fatten(int x);
to return the result of fattening @x@. Yau may implement and use auxiliar procedures.
It holds @x@ .
You only need to submit the required procedure; your main program will be ignored.
Input/Output