Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a,b=0;
- cout<<"Enter number: \n";
- cin>>a;
- while(a)
- {
- if(a%10!=3 and a%10!=6)
- b=b*10+a%10;
- a/=10;
- }
- while(b)
- {
- a=a*10+b%10;
- b/=10;
- }
- cout<<a<<"\n";
- return 0;
- }
Add Comment
Please, Sign In to add comment