#include using namespace std; int main() { int arr[100],i,n,sum=0; cout<<"Enter the number of elements: "; cin>>n; cout<<"Enter the value of elements: "<>arr[i]; } for(i=0;i