Предмет: Информатика,
автор: Аноним
Initialize the value of the product to 1(not 0 as 0 multiplied with anything returns zero). Traverse till the end of the list, multiply every number with the product. The value stored in the product at the end will give you your final answer.
Ответы
Автор ответа:
0
Ответ:
Given a list, print the value obtained after multiplying all numbers in a list.
Examples:
Input : list1 = [1, 2, 3]
Output : 6
Explanation: 1*2*3=6
Input : list1 = [3, 2, 4]
Output : 24
Интересные вопросы
Предмет: Русский язык,
автор: умелец12
Предмет: Русский язык,
автор: 12345678998765432125
Предмет: Русский язык,
автор: аня4545
Предмет: Українська мова,
автор: littleelf87
Предмет: Математика,
автор: vadimlukin2001