Saved Bookmarks
| 1. |
Rita is writing a C++ programe in whic, she wants to display the grades (stored in variable grade) as per the table of marks (stored in variable marks) given below: A – 90-100 B – 80-89 C – 70-79 D < 70 |
|
Answer» #include using namespace std; INT main(){ int marks; COUT<<"please enter your marks "; cin>>marks; if(marks>=90&&marks<=100) cout<<"A"; else if(marks>=80&&marks<=89) cout<<"B"; else if(marks>=70&&marks<=79) cout<<"C" else cout<<"D"; return 0; } You can modify the print STATEMENTS as you want them to be. |
|