Untitled
unknown
plain_text
a year ago
227 B
6
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