Untitled

 avatar
unknown
plain_text
2 years ago
256 B
5
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...