#include <iostream>
using namespace std;
signed main() {
int _sum = 0;
int a[10] = { 10, 5, 32, 40, 73, 12, 47, 93, 87, 31 };
for (size_t i = 0; i < 10; i++)
{
_sum += a[i];
}
cout << _sum / 10 << endl;
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
signed main() {
int _sum = 0;
int a[10] = { 10, 5, 32, 40, 73, 12, 47, 93, 87, 31 };
for (size_t i = 0; i < 10; i++)
{
_sum += a[i];
}
cout << _sum / 10 << endl;
return 0;
}