11 lines
104 B
Python
11 lines
104 B
Python
def func1(n):
|
|
i = 1
|
|
s = 1
|
|
while s <= n:
|
|
i+=1
|
|
s+=i
|
|
print("*", end="")
|
|
|
|
n = 10
|
|
func1(n)
|