Computer Science, asked by anupriya6053, 9 months ago

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 ehariharan98
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