Advertisement
erzis

Untitled

Oct 18th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int n;
  4. int c = 1;
  5. int main()
  6. {
  7. cin >> n;
  8. for (int i = 10; n > i; i = i*10)
  9. {
  10. c++;
  11. }
  12. cout << c << endl;
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement