Объясните что делает этот код на питоне
n = int(input())
b = int(input())
sum = 0
for _ in range(n-1):
a = int(input())
sum += b*a
b = a
print(sum)
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.