#include<iostream>
using namespace std;
int main()
{
int i;
double price[5], sum=0, avr=0, prod=1;
for(i=0;i<5;i++)
{
cout<<"enter the price of items"<<i <<"\n";
cin>>price[i];
sum=price[i];
prod=price[i];
}
avr=sum/5;
cout<<sum<<endl;
cout<<prod<<endl;
cout<<avr<<endl;
}
using namespace std;
int main()
{
int i;
double price[5], sum=0, avr=0, prod=1;
for(i=0;i<5;i++)
{
cout<<"enter the price of items"<<i <<"\n";
cin>>price[i];
sum=price[i];
prod=price[i];
}
avr=sum/5;
cout<<sum<<endl;
cout<<prod<<endl;
cout<<avr<<endl;
}