Untitled
unknown
c_cpp
2 years ago
237 B
4
Indexable
#include <iostream>
int count(long long number) {
int sum = 0;
do {
sum += 1;
number /= 10;
} while (number != 0);
return sum;
}
int main() {
long long number;
std::cin >> number;
std::cout << count(number);
}Editor is loading...
Leave a Comment