Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
318 B
4
Indexable
Never
// задача 1

#include <iostream>

using namespace std;

int main() 
{
    int a = 0;
    cin >> a;
    int r = 0;
    if (a == 0)
    {
        cout << "1";
    }
    else {

        for (a; a >= 1; a /= 10)
        {
            r += 1;
        }
        cout << r;
    }
    return 0;
}