Two different algorithms are written to calculate the sum of the first n n\,n positive even integers.
n = int(input("Enter n: "))
total = 0
for i in range(1, n + 1):
total = total + (2 * i)
print(total)
n = int(input("Enter n: "))
total = n * (n + 1)
print(total)
Algorithm B is more efficient than Algorithm A.
Justify this statement.