num 40 num 50 cout Your grade is C endl else cout OOps You are Fail endl system

Num 40 num 50 cout your grade is c endl else cout

This preview shows page 4 - 5 out of 5 pages.

cout << "dont be smart enter correct marks. " << endl;
Image of page 4
} else { switch (marks / 10) { case 9: //marks between 90-100 cout << "your grade is A+ or excellent. " << endl; break ; case 8: //makrs between 80-90 cout << "your grade is A- or very good. " << endl; break ; case 7: //makrs between 70-79 cout << "your grade is B+ or good " << endl; break ; case 6: //makrs between 60-69 cout << "your grade is B- or very fair " << endl; break ; case 5: //makrs between 50-59 cout << "your grade is C or fair " << endl; break ; case 4: //makrs between 40-49 cout << "your grade is D or bad" << endl; break ; default : cout << "Your grade is F or You are fail..." << endl; } } system( "pause" ); return 0; }
Image of page 5

You've reached the end of your free preview.

Want to read all 5 pages?

  • Fall '18
  • Zia Ul Rehman
  • Fahrenheit, Carriage return, Bahria University, Department of Computer Sciences, Mr. Zia Ul Rehman

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture