Ответ:
k = int(input("Введите число"))
sum = 0
i = 1
while k > sum:
i = i + 1
sum = sum + i
if sum > k:
print(k, sum)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Ответ:
k = int(input("Введите число"))
sum = 0
i = 1
while k > sum:
i = i + 1
sum = sum + i
if sum > k:
print(k, sum)