Advertisement
rengetsu

Proced_2_Pratyb_2.06

Mar 2nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     long long int  n, rez=0;
  6.     cin>>n;
  7.     for(int i=0;n!=0;i++){
  8.         n=n/10;
  9.         rez=1+rez;}
  10.     cout<<rez;
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement