Untitled
unknown
c_cpp
8 months ago
225 B
4
Indexable
Never
#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; }
Leave a Comment