Untitled
Anonymous
c_cpp
02/08/2024 6:03 PM
300 B
22
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