Predict the output:
#include iostream
using namespace std;
int main() {
int marks;
cout"enter the marks"endl;
cinmarks;
if(marks=90)
{
cout"grade a"endl;
}
else if(marks=80)
{
cout"grade b";
}
else if(marks=60)
{
cout"grade c";
}
else if(marks=40)
{
cout"grade d";
}
else{
cout"fail"endl;
}
}

Posted on by