You are viewing a single comment's thread. Return to all comments →
if name == 'main': n = int(input()) x=0 for i in range(n): x=x+((i+1)10*(n-(i+1))) print(x)
# It works well but doesn't submit/ I don't know why :(
Seems like cookies are disabled on this browser, please enable them to open this website
Print Function
You are viewing a single comment's thread. Return to all comments →
if name == 'main': n = int(input())
x=0 for i in range(n): x=x+((i+1)10*(n-(i+1))) print(x)