Untitled
unknown
plain_text
3 years ago
431 B
7
Indexable
#include <iostream>
using namespace std;
//ostream &operator<< (ostream& out,const aboba &a) {
// out << a.name << " " << a.surname;
// return out;
//}
int dis(int a,int f) {
while (a != 0) {
a = a / 10;
f++;
}
return f;
}
int main()
{
int a,f=0 ;
//int temp, f =0;
cin >> a;
cout << dis(a,f);
}
Editor is loading...