Advertisement
alex326

Untitled

Jan 22nd, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. problema 66
  2.  
  3. #include <iostream>
  4. using namespace std;
  5. int main()
  6. {
  7. long long n,s=0;
  8. cin>>n;
  9. if (n==0)
  10. cout<<"1";
  11. else
  12. {while (n!=0){
  13. s++;
  14. n=n/10;
  15. }
  16. cout<<s;}
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement