nord vpnnord vpn
Ad

Untitled

mail@pastecode.io avatar
unknown
c_cpp
20 days ago
222 B
0
Indexable
Never
#include <iostream>
int countDigits(int number) {
	int res = 0;
	do {
		number /= 10;
		res++;
	} while (number > 0);
	return res;
}


int main() {
	int n = 0;
	std::cin >> n;
	std::cout << countDigits(n);
}
Leave a Comment


nord vpnnord vpn
Ad