1234567891011121314151617181920212223242526272829303132333435363738
Put the code you#include <iostream> using namespace std; int main() { int grade = 'a'; char b; b = 'b'; cout << "enter the last grade you got on your exam" << endl; cin >> grade; if (grade = 'a') { cout << "Excellent work!" << endl; } else if (grade = 'b') { cout << "above average work" << endl; } }
if (grade == 'a')
if (grade == 'b')
12345678910111213141516
#include<iostream> using namespace std; int main() { char grade ; cout<<"\nEnter The Grade of The Student (A/B) " ; cin>>grade ; if (grade == 'A' || grade == 'a') cout<<"\nExcellent Work\n"; else if (grade == 'B' || grade =='b') cout<<"\nAbove Average Work...\n"; else cout<<"\nINVALID INPUT!!!"; return 0 ; }