I have to enter grades and if I enter a negative grade then the program is supposed to terminate. I came up with this code but it doesn't terminate it just asks for another grade.
if (grade[i]<0)
cout << "This is not a correct grade";
Any suggestions?