#include using namespace std; int main() { int size; cout<<"Enter the size of the array: "; cin>>size; double *arr = new double[size]; // creating a dymanic array of size "size" cout<<"Enter the array:"<>arr[i]; //dynamically allocated arrays can be used like regular arrays double sum=0; for(int i=0; i