eolymp
bolt
Try our new interface for solving problems
published at 1/16/24, 12:33:57 pm

include <iostream>

include <cmath>

using namespace std; int main() { int N; long long n; cin >> n; N = 0; n = abs(n); if(n==0) { N= 1; } while(n>0) { n = n / 10; N++; } cout << N; return 0; }