This commit is contained in:
2025-12-11 18:01:56 +05:00
commit bfa7413f9c
38 changed files with 651 additions and 0 deletions

10
task_9.py Normal file
View File

@@ -0,0 +1,10 @@
a = float(input("Введите число a: "))
n = 1
sum_n = 1
while sum_n <= a:
n += 1
sum_n += n
print(f"n = {n}")