Friday, 2 November 2012

Check Your Grade....


// Enter Your Marks out of 100 and check your Grade...
#include <iostream>
using namespace std;
int main(){
int marks;
cout <<"This grading is out of 100 marks." << endl;
cout << "Enter your Obtained marks: ";
cin >> marks;
if(marks>=80)
cout << "Your Grade is A+ : Excellent"<<endl;
else if(marks>=70 && marks<80)
cout << "Your Grade is A : Very Good"<<endl;
else if(marks>=60 && marks<70)
cout << "Your Grade is B : Good"<<endl;
else if(marks>=50 && marks<60)
cout << "Your Grade is C : Fair"<<endl;
else if(marks>=40 && marks<50)
cout << "Your Grade is D : Bad"<<endl;
else if (marks>=33 && marks<40)
cout << "Your Grade is E : Very Bad"<<endl;
else
cout << "Sorry You Are Fail !!! Plz Struggle Hardly....."<<endl;
return 0;
}

No comments:

Post a Comment