Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int n;
- int c = 1;
- int main()
- {
- cin >> n;
- for (int i = 10; n > i; i = i*10)
- {
- c++;
- }
- cout << c << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement