Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Ridicare la putere in timp logaritmic
AlexandruT
Jan 21st, 2015
58
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.27 KB
| None
|
0
0
raw
download
clone
embed
print
report
int
Putere
(
int
baza,
int
exp
)
{
put
=
1
;
while
(
exp
)
{
if
(
exp
%
2
==
1
)
{
put
*
=
baza
;
exp
--
;
}
else
{
exp
/
=
2
;
baza
*
=
baza
;
}
}
return
put
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
💎 ChangeNOW Exploit 📌✅
JavaScript | 48 sec ago | 0.20 KB
💎 ChangeNOW Exploit 📌✅
JavaScript | 50 sec ago | 0.20 KB
💡 EASY MONEY GUIDE ✅ Working ✅📌
JavaScript | 11 min ago | 0.20 KB
💎 ChangeNOW Exploit
JavaScript | 15 min ago | 0.22 KB
Untitled
PHP | 33 min ago | 31.29 KB
🔥 Exchange profit method
JavaScript | 38 min ago | 0.22 KB
Valid Anagrams - LeetCode
Java | 54 min ago | 3.13 KB
💡 Instant BTC Profit Method ✅ Working
JavaScript | 60 min ago | 0.22 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!