I have created an array that holds 5 numbers, and the user inputs the numbers. If the mark is less than 0 and greater than 100, I want to print out "invalid mark number". How could I do that?
using namespace std; 
int mark[5];
int main () 
{
cout << "enter mark 0:  ";
cin >> mark[0];
cout << "enter mark 1:  ";
cin >> mark[1];
cout << "enter mark 2:  ";
cin >> mark[2];
cout << "enter mark 3:  ";
cin >> mark[3];
cout << "enter mark 4:  ";
cin >> mark[4];
}
 
     
    