Commit 4c60a93
committed
feat: Calculate average of three subject marks and assign grade based on range
🧠 Logic:
- Reads marks for three subjects (m1, m2, m3).
- Computes the average of the marks.
- Determines grade based on average:
- ≥70 → Grade A
- 60–69 → Grade B
- 50–59 → Grade C
- 40–49 → Grade D
- <40 → Grade E
Signed-off-by: Somesh diwan <[email protected]>1 parent dc39116 commit 4c60a93
File tree
1 file changed
+5
-6
lines changed- Section7ConditionalStatements/src
1 file changed
+5
-6
lines changedLines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | | - | |
| 37 | + | |
0 commit comments