Doan logic 0
unknown
plain_text
3 years ago
118 B
7
Indexable
def f(x): return x*(x+1) t = int(input()) while t > 0: t -= 1 x = int(input()) print(f(x))
Editor is loading...
def f(x): return x*(x+1) t = int(input()) while t > 0: t -= 1 x = int(input()) print(f(x))