Easy
Product of a List
Write a recursive
product(nums) (empty list → 1). Read integers and print the product.Input
One line.
Output
One integer.
Sample 1
Input
1 2 3 4
Output
24
Sample 2
Input
5
Output
5
Output appears here