Nitin400

A program that displays the grade of student according to t

Jun 6th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     int marks;
  6.     cout<<"Enetr the marks: ";
  7.     cin>>marks;
  8.     if(marks>=70)
  9.     {
  10.        cout<<"A";
  11.     }
  12.     else if(marks>=60)
  13.     {
  14.         cout<<"b";
  15.     }
  16.     else if(marks<60)
  17.     {
  18.         cout<<"c";
  19.     }
  20.     return 0;
  21. }
Add Comment
Please, Sign In to add comment