S001-AC.cc
256 Bytes
#include <iostream>
using namespace std;
int number_of_digits(int n)
{
int res = 0;
do
{
n /= 10;
res++;
}while(n);
return res;
}
int main()
{
/*
int a;
cin >> a;
cout << "number of digits: " << number_of_digits(a) << endl;
return 0;
*/
}