Good evening everyone, In attempting to write my grade code for class I seem to have come errors... Namely the operator after the && gives the error (expected an expression) and that the else statements give an error saying there is no if statement. Anyone care to help?
#include <iostream>
using namespace std;
int main()
{
double point;
cout << "Enter your grade point." << endl;
cin >> point;
if (point <= 100 && >= 90) {
cout << "Congratulations! You got an A" << endl;
}
else if (point >= 80 && < 90) {
cout << "Good Job, you got a B" << endl;
}
else if (point >= 70 && < 80) {
cout << "You got a C, at least it counts." << endl;
}
else if (point >= 60 && < 70)
{
cout << "You got a D... should have tried harder" << endl;
}
else if (point >= 0 && < 60)
{
cout << "You got an E. What happened?!?" << endl;
}
else if (point < 0 || >100)
{
cout << "Invalid input" << endl;
}
system("pause");
return 0;
}