Untitled

mail@pastecode.io avatar
unknown
plain_text
6 months ago
334 B
7
Indexable
Never
//задача номер 0 (функции)
#include <iostream>
using namespace std;

long long a;
int b = 0;

int numbers(long long a, int b)
{
    while (a > 0)
    {
        a /= 10;
        b++;
    }
    cout << b;
    return b;
}

int main()
{
    int a;
    int b = 0;
    cin >> a;
    numbers(a,b);
}
Leave a Comment