int main()
{
int i = 0 , x = 0;
float donations[100] , arrayOfdonation[100];
for( int i = 0 ; i < 100 ; i++ ){
cout << "Enter donation: ";
cin >> arrayOfdonation[i];
}
getch();//Pause the window
return 0;
}
How should I put if my input arrayOfdonation == -1
My program will terminated? this is easy but I don't know where should I put for the input that have array of it .