Marks | Class |
---|---|
70-100 | Distinction |
60-69 | First Class |
50-59 | Second Class |
40-49 | Pass Class |
0-39 | Fail |
#include<iostream>
using namespace std;
int main()
{
int marks;
cout<<"\n Enter Marks : ";
cin>>marks;
if (marks>=70)
{
cout<<"\n Distinction";
}
else
{
if(marks>=60)
{
cout<<"\n First Class";
}
else
{
if(marks>=50)
{
cout<<"\n Second Class";
}
else
{
cout<<"\n Fail";
}
}
}
return 0;
}