I tried to solve the program for a look and read digit. The user input a number like 488667 and the result of the program should be 14282617 with no function,array, or pointer used. To solve the program I get an error which is that the counter does not cumulate.Please if somebody have any suggestions I would appreciate it.
using namespace std;
cout<<" Please enter number"<<endl;
int s =log10(n);