test1
This commit is contained in:
10
operators_9.py
Normal file
10
operators_9.py
Normal 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}")
|
||||
Reference in New Issue
Block a user