Untitled
Anonymous
plain_text
02/26/2023 12:00 PM
344 B
16
Indexable
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int podchet(int chislo) {
int h = 1;
while (chislo >= 10) {
chislo /= 10;
h += 1;
}
return h;
}
int main() {
int h;
cin >> h;
cout << podchet(h);
}Editor is loading...