✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Код програми, поданий нижче буде скомпільовано без помилок:
#include <iostream>
using namespace std;
void main()
{
int a[5] = { 3, 2, 1, 5, 4 };
int sum = 0;
for (int i = 0; i<5; i++)
if (a[i]>sum)
sum = a[i];
cout << sum;
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!