#include <iostream>using namespace std; int main(){ int n; int sum=1;cin>>n;int a[n]; for(int i=0;i<n;i++){ cin>>a[i];sum=sum*a[i]; }cout<<sum;return 0;}
11 1 2 3 4 5 6 7 8 9 10 11
39916800
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!