Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Impare_Bac
a53
Jul 15th, 2019
78
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.27 KB
| None
|
0
0
raw
download
clone
embed
print
report
void Impare(int &n)
{
int aux=0, p=1, c;
while(n>10)
{
c=n%10;
if(c%2)
c--;
aux=aux+p*c;
p=p*10;
n/=10;
}
if(n%2==0)
aux=aux+p*n;
else if(n>1)
aux=aux+p*(n-1);
n=aux;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
GMAIL Logs (2FA disabled)
JavaScript | 12 sec ago | 0.09 KB
Make $1200 in 15 minutes
JavaScript | 1 min ago | 0.09 KB
Netflix Premium UHD Hits
JavaScript | 1 min ago | 0.09 KB
????Make 3500$ in 1 day [Method]???? XH
Java | 1 min ago | 0.15 KB
reload_drivers.cmd
Batch | 1 min ago | 0.17 KB
✅ Crypto Accounts
JavaScript | 1 min ago | 0.09 KB
✅ PayPal Hits
JavaScript | 1 min ago | 0.09 KB
GMAIL Logs (2FA disabled)
JavaScript | 2 min ago | 0.09 KB
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
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!