Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. void dublare1( int &n){
  2. int x = n, p = 1, c;
  3. n = 0;
  4. while(x) {
  5. c = x%10;
  6. n = n + c*p;
  7. p*=10;
  8. x/=10;
  9. }
  10. n = n + c*p;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement