print("inserire n numeri")
n=int (input())
s=0
c=0
while c<n:
    print("inserire un numero")
    n1=int (input())
    t=n1*3
    print("triplo=",t)
    s=s+t
    c=c+1
print("somma=",s)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: