Untitled
unknown
c_cpp
2 years ago
225 B
11
Indexable
#include <iostream>
using namespace std;
long chuslo(int a) {
int sum = 0;
if (a > 0) {
while (a != 0) {
a /= 10;
sum++;
}
}
return(sum);
}
int main()
{
int f = chuslo(12345);
cout << f;
}Editor is loading...
Leave a Comment