how do you use the if function and how would one declare its values, example for a grading system for school
#include (iostream)
using namespace std;
char letter-grade;
cout<<"enter grade";
cin>>grade;
if (grade>= 90)
letter -grade = "A";
what am I missing, and how do I close the statement once it reaches to F
#include (iostream)
using namespace std;
char letter-grade;
cout<<"enter grade";
cin>>grade;
if (grade>= 90)
letter -grade = "A";
what am I missing, and how do I close the statement once it reaches to F
Comment