程序代码:
#include<iostream>
using namespace std;
int main()
{
double *p = new double[10];
double sun = 1;
for (int i=0; i <9; ++i)
cin >> *p;
for (int i = 0; i <9; ++i)
{
sun *=*p;
++p;
}
cout << sun << endl;
delete[] p;
return 0;
}