Write a program in java, accept the percentage and print the result pass
or fail according the given criteria: -
If percentage is less than 40 print fail otherwise pass. Use conditional
operator. [8]
Answers
Answered by
1
Answer:
In Python,
P = int(input("Enter your percentage")
if P >= 40 and P <= 100:
print("Pass")
else:
print("Fail")
Similar questions