Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
184 B
0
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
    int a;
    int b = 0;
    cin >> a;
    while (a != 0) {
        a /= 10;
        b += 1;
    }
    cout << b;
}