python/listedecourses.py
2022-12-28 09:00:47 +01:00

7 lines
190 B
Python

cout = 0
prixIngredient = [9, 5, 12, 15, 7, 42, 13, 10, 1, 20]
for loop in range(10):
poidsIngredient = int(input())
cout = cout + prixIngredient[loop] * poidsIngredient
print(cout)