OneCompiler

Biểu thức cộng trừ

n=int(input())
tong=0
for i in range(1,N+1):
if i % 2 == 1:
tong += i
if i % 2 == 0:
tong -= i
print(tong)