Untitled
unknown
plain_text
2 years ago
208 B
12
Indexable
#include <iostream>
using namespace std;
int b(int a) {
int i = 1;
while ((a /= 10) > 0) {
i++;
}
return i;
}
int main()
{
int a;
cin >> a;
cout << b(a);
}Editor is loading...
Leave a Comment