Untitled

 avatar
unknown
plain_text
2 years ago
238 B
4
Indexable
#include <iostream>

using namespace std;

int main()
{
    int A, tempA;
    int count = 0;
    cin >> A;
    tempA = A;


    while (tempA > 0) {
        tempA /= 10;
        count += 1;
    }
    cout << count;
}


Editor is loading...