My professor gave me rather unclear descriptions for some assignments with summation. I'm just wondering if I've got the right idea using nested for loops or if I'm way off? I've posted an image of said assignment below.
def c(n):
sum = 0
for i in range(1, n+1):
for j in range(1, n+1):
sum = sum + i*j
return sum
