Home » C++ » Solved Programs » Display the product of 10 numbers
C++ console application that will display the product of 10 numbers
#include<iostream>
using namespace std;
int main(){
int arr[10];
long int product = 1;
for(int i=0; i<10; i++){
cout<<"\n Enter ["<<i<<"] : ";
cin>>arr[i];
product *= arr[i];
}
cout<<"\n product of 10 number is : "<<product;
return 0;
}