def func1(n): i = 1 s = 1 while s <= n: i+=1 s+=i print("*", end="") n = 10 func1(n)