hello i need help, i have to input 10 integers and find the maxinum of the numbers.
#include <iostream>
using namespace std;
int main()
{
const int MAX_NUM_INTEGERS = 10;
int integers[0];
int largest = integers[0];
cout << "Enter 10 intergers: ";
cin >> integers[i]
for (int i=0; i < MAX_NUM_INTEGERS; i++){
if (integers[i]> largest){
largest = integers[i];
}
}
cout << "Largest integer = " << largest<<"\n";
system("pause");
return 0;
}