#include
using namespace std;
int main()
{
double a[1], sum = 0.0, average, min, max;
cout << "Input 5 elements through a gap:\n";<br> for (int i = 1; i < 6; i++)
{
cin >> a[i]; min = a[i]; max = a[i];
sum = sum + a[i];
average = sum / i;
}
for (int i = 1; i < 6; i++)
{
if (min > a[i])
{
min = a[i];
}
if (max < a[i])
{
max = a[i];
}
}
cout << average << " " << min << " " << max;<br>
return 0;}