please help to write the code to calculate tax

define a structure employee with name, category , salary, tax as a member. read the name category and salary of employee and calculate the tax as below

categories
A 10% OF SALARY
B 15% OF SALARY
C 20% OF SALARY
OTHERS 30% OF SALARY
Last edited on
How to create a struct:
struct <struct_name> { <var_type_1> <var_name_1>, <var_type_2> <var_name_2>...};
Topic archived. No new replies allowed.