Doan logic 0

 avatar
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...