Product of N numbers

Product of N numbers. Given an integer N followed by N integers, read these integers and print their product. The first line of input contains a positive integer N, which indicates how many integers will follow. Each of the next N lines contains one integer. Calculate and print the product of these N integers.

Test Case Input (N and numbers) Expected Output
1 4
1
2
3
4
24
2 3
5
6
7
210
3 2
10
20
200