Ответ:
n = int(input())
i, k=0, 0
while n != 0:
n, i = n - 1, i + 1
k += i
print(k)
m = 0
i = 0
while i < n:
i += 1
m += i
print(m)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
n = int(input())
i, k=0, 0
while n != 0:
n, i = n - 1, i + 1
k += i
print(k)
Verified answer
Ответ:
n = int(input())
m = 0
i = 0
while i < n:
i += 1
m += i
print(m)