Skip to content

Commit 4f2d684

Browse files
author
codehouseindia
authored
Merge pull request codehouseindia#87 from divasha/patch-1
sabind.java
2 parents c387580 + 8dc1fbf commit 4f2d684

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

sabind.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#https://www.facebook.com/mayankgbrc/post/2726954114288546
2+
3+
#subscribe by code house
4+
Import sys
5+
score=input("enter the value")
6+
try:
7+
score=float(score)
8+
If score>1.0:
9+
print("bad score")
10+
elif 1.0>=score>=0.9:
11+
print("Grade is A" +str(score))
12+
elif 0.9>score>=0.8:
13+
print("B")
14+
elif 0.8>score>=0.7:
15+
print("C")
16+
elif 0.7>score>=0.6:
17+
print("D")
18+
elif 0.6>score>=0.5:
19+
print("F")
20+
except ValueError:
21+
print("you need to input a Number")
22+
exit()

0 commit comments

Comments
 (0)