N = int(input())
S = 0
i = 0
while i <= N:
if not i%2: S += i
i += 1
print(S)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
N = int(input())
S = 0
i = 0
while i <= N:
if not i%2: S += i
i += 1
print(S)