Untitled

mail@pastecode.io avatar
unknown
c_cpp
19 days ago
202 B
2
Indexable
Never
long chuslo(int a) {
	int sum = 0;
	if (a > 0) {
		while (a != 0) {
			a /= 10;
			sum++;
		}
	}
	return(sum);
}

int main() 
{
	int a;
	cin >> a;
	int f = chuslo(a);
	
	cout << f;

}
Leave a Comment