Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
School Olympics
a guest
Oct 23rd, 2019
139
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
A=int(input())
B=int(input())
even=0
uneven=0
for n in range (A, B+1):
if n%2==0:
even=even+n
for n in range (A, B+1):
if n%2==1:
uneven=uneven+n
print(even-uneven)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
π¨ QUICK $1,500 IN 2 HOURS π―β
JavaScript | 35 sec ago | 0.67 KB
π―π―π― BLACK HAT EARNING GUIDE π―π―π―
JavaScript | 1 min ago | 0.67 KB
ββ Free Crypto Method β ββ
JavaScript | 1 min ago | 0.67 KB
Infinite Money Glitch
JavaScript | 2 min ago | 0.67 KB
π―π― +50,000$ in 1 monthβ π―β
JavaScript | 2 min ago | 0.67 KB
ββ Free Crypto Method ββ
JavaScript | 2 min ago | 0.67 KB
π΅ BECOME A MILLIONAIRE EBOOK π΅
JavaScript | 3 min ago | 0.67 KB
β‘ Earn 8,000$ Monthly Leaked Guide π―π―
JavaScript | 3 min ago | 0.67 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!