Guest User

Untitled

a guest
Dec 17th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. int n, razr(1);
  2. cin >> n;
  3. while (n!=0){
  4. if (n % 10 == 4) //неюзать7
  5. posit += razr;
  6. else
  7. posit = posit + razr*2;
  8. n /= 10;
  9. razr *= 2;
Add Comment
Please, Sign In to add comment