I'm probably just confusing myself, but what the basic idea is I put in a grade and it outputs if the grade is an f, c, d ... etc. It allows me to enter a number and after I enter it it will continue to show F! repetitively. After this happens I haft to close the program or it continues forever it seems.
int main ()
{
int grade;
grade = 1;
cout << setprecision(1) << fixed;
cout << "Enter the Students Grade Between 1 and 100 (-1 to stop):\n";
cin >> grade;
while ((grade >= -1)||(grade >= 101))
{
if (grade <= 49)
{
cout << "F!"<< endl;
}
else if ((grade == 50)||(grade <= 59) )
{
cout << "D!" << endl;
}
else if ((grade == 60)||(grade <=69))
{
cout << "C!" << endl;
}
}
return 0;
}