Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void P(int &n, int c)
- {
- int nn=n, p=1;
- n=0;
- while(nn!=0)
- {
- if(nn%10!=c)
- {
- n+=nn%10*p;
- p*=10;
- }
- nn/=10;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement