forked from Bishal-0379/Cpp_Programs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path6_grading.cpp
More file actions
36 lines (35 loc) · 710 Bytes
/
6_grading.cpp
File metadata and controls
36 lines (35 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include <iostream>
using namespace std;
int main()
{
signed long num1 = 0;
cout << " Enter your marks : ";
cin >> num1;
if(num1 > 9 and num1<10)
{
cout << " Grade A+\n\n";
}
else if(num1 >8 and num1<=9){
cout << " Grade A\n\n";
}
else if(num1 > 7 and num1<=8){
cout << " Grade B+\n\n";
}
else if(num1 > 6 and num1<=7){
cout << " Grade B\n\n";
}
else if(num1 > 5 and num1<=6){
cout << " Grade C\n\n";
}
else if(num1 > 4 and num1<=5){
cout << " Grade D\n\n";
}
else if(num1 > 0 and num1<=4){
cout << " Failed\n\n";
}
else
{
cout << "False input";
}
return 0;
}