Guest User

Untitled

a guest
Jan 18th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a,b=0;
  6. cout<<"Enter number: \n";
  7. cin>>a;
  8. while(a)
  9. {
  10. if(a%10!=3 and a%10!=6)
  11. b=b*10+a%10;
  12. a/=10;
  13. }
  14. while(b)
  15. {
  16. a=a*10+b%10;
  17. b/=10;
  18. }
  19. cout<<a<<"\n";
  20. return 0;
  21. }
Add Comment
Please, Sign In to add comment