#include<iostream>
using namespace std;
int main()
{
const int size = 3;
int i;
float sales[size],avg=0, total=0;
for(i=0;i<size;i++) //accept the sales
{
cout<<"enter the sales on day"<<i<<":";
cin>>sales[i];
total=sales[i];
}
avg=total/size;
cout<<"total sales="<<total<<"\n";
cout<<"average of sales is="<<avg<<"\n";
}
using namespace std;
int main()
{
const int size = 3;
int i;
float sales[size],avg=0, total=0;
for(i=0;i<size;i++) //accept the sales
{
cout<<"enter the sales on day"<<i<<":";
cin>>sales[i];
total=sales[i];
}
avg=total/size;
cout<<"total sales="<<total<<"\n";
cout<<"average of sales is="<<avg<<"\n";
}