Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
269 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
    int a, b ,i,max=1,min=1;
	float c = 0;
	for (i = 0; i < 10; i++)
	{
		cin >> a;
		if (a > max) max = a;
		if (a < min) min = a;
		c += a;
 	}
	cout << max << " " << min << " " << c / 10.0;
}