Untitled
Anonymous
plain_text
10/15/2023 9:00 AM
320 B
17
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...