num = 0
num_rows = int(input("кількість рядів\n"))
while num_rows != 0:
____num += num_rows
____num_rows -= 1
print(num, "яблук")
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
num = 0
num_rows = int(input("кількість рядів\n"))
while num_rows != 0:
____num += num_rows
____num_rows -= 1
print(num, "яблук")