Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 17th, 2019
67
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
# число делится и на 3 и 5
def summ(N):
summ = 0
i = 1
for i in range(N+1):
if i % 15 == 0 :
summ = i + summ
return summ
print(summ(35))
print(summ(1001))
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
HTML 5 | 13 min ago | 3.35 KB
Untitled
PHP | 36 min ago | 2.03 KB
Untitled
PHP | 37 min ago | 10.21 KB
R88_ESLify.bat Both SSEedit and auto launch S...
Batch | 42 min ago | 3.60 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 54 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 55 min ago | 0.39 KB
startup
Lua | 1 hour ago | 0.18 KB
MQTT-induction
Lua | 1 hour ago | 3.07 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!