eolymp
bolt
Try our new interface for solving problems
dərc olunub 16.01.24 12:33:57

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; }