Hello Fellow programmers i am new at this and i'm having trouble with this program. I want it to read lowercase and uppercase letters but for some odd reason it is not working.
#include <iostream>
using namespace std;
char getGrade()
{
char grade = 'Q'; //the default value
while (true)
{
cout << "what is your grade ? [ A,B,C,D,F, or Q to qit]:";
cin >> grade;
cin.ignore(1000,10);
if (grade == 'A' || grade == 'B' ||grade=='C' ) break;
if (grade == 'D' || grade == 'F' ) break;
if (grade == 'Q') break;