Joined
Last Seen
-3 Reputation Points
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: Calculate a grade of student Total marks=100 Mark=int(Input("enter obtained marks")) TM=int(Input("enter the total marks")) assert marks>=0 & marks<=TM Perc=(marks/TM)*100 If perc>=90: Print(A) Elif perc>=81: Print(A2) Elif perc>=71: Print(B1) Elif perc>=61: Print(B2) Elif perc>=51: Print(C1) Elif perc>=41: Print(C2) Elif perc>=33: Print(D) Else: Print(fail) OUTPUT ENTER OBTAINED MARKS 78 B1 |
The End.