Produk Array di CPP
int a[5] = {2,3,4,5,6};
int product = 1;
for(int i=0;i<5;i++)
{
product *= a[i];
}
cout<<product;
Eusha Khan
int a[5] = {2,3,4,5,6};
int product = 1;
for(int i=0;i<5;i++)
{
product *= a[i];
}
cout<<product;