Hello:
I am trying to compile this block of code but every time I try to do so I get the same error message. Missing syntax before cout<<"Enter grade\n";
Can anyone tell me what is missing?
Thank you
#include <iostream>
using namespace std;
int main ()
{
char grade
cout<<"Enter grade\n";
cin>>grade;
if (grade >90)
cout<<"A";
else
if (grade >80)
cout<<"B";
return 0;
}
I am trying to compile this block of code but every time I try to do so I get the same error message. Missing syntax before cout<<"Enter grade\n";
Can anyone tell me what is missing?
Thank you
#include <iostream>
using namespace std;
int main ()
{
char grade
cout<<"Enter grade\n";
cin>>grade;
if (grade >90)
cout<<"A";
else
if (grade >80)
cout<<"B";
return 0;
}
Comment