Untitled
unknown
plain_text
2 years ago
227 B
7
Indexable
#include <iostream>
using namespace std;
int countsOfdigits(int a) {
int count = 0;
while (a) {
a /= 10;
count++;
}
cout << count;
return count;
}
int main()
{
int n;
cin >> n;
countsOfdigits(n);
}Editor is loading...
Leave a Comment