n = int(input("N = "))
s = 0
x = 1
if n % 2 == 0:
while s<= n:
s = s +x
x = x + 2
print(s)
else:
print("...")
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
n = int(input("N = "))
s = 0
x = 1
if n % 2 == 0:
while s<= n:
s = s +x
x = x + 2
print(s)
else:
print("...")