WAP to accept salary ans calculate tax. If salary is more than 10000 then tax 10% of salary otherwise 5% of salary. Weite using ternary method.
Answers
Answered by
0
in python3
sal = int(input("Enter the salary"))
tax = sal * 5 if sal <= 10000 else sal * 10
print ("The tax is ",tax)
Similar questions