basic salary
unknown
plain_text
a year ago
337 B
2
Indexable
Never
basic_salary=int(input("The basic salary:")) if basic_salary <= 10000: DA=0.80; HRA=0.20 elif 100001 <basic_salary <20000: DA=0.90; HRA=0.25 elif basic_salary >= 20001: DA=0.95; HRA=0.30 da=basic_salary*DA hra=basic_salary*HRA gross_salary=basic_salary+da+hra print('The gross salary: ${:.2f}'.format(gross_salary))