SHARE
TWEET

Untitled

a guest Jan 18th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top