Im trying to learn how to use nested if else statements to do this.
Its a grading program. The user enters a percentage then the program displays the grade and how many points each grade is worth. The highest grade is 100
This is what i have so far
#include <iostream>
using namespace std ;
Int main {
double userinput;
cin >> userinput
If (userinput > 60 && userinput < 63)
cout << " Your grade is" << userinput<< "your grade is D<< "points:0.65" endl;
return 0;
}
Im supposed to write it using only one comparison assuming the highest grade is 100