DevJourney · code I wrote while learning

README.md

474 B

Create a structure called Address with members such as door no, street, city and pincode. Create another structure to store employee details such as name, id, age, gender, address (a variable of ‘Address’ structure), Basic Pay (BP), Dearness Allowance (DA) and House Rent Allowance (HRA). Write a C program to read the necessary employee details, calculate the total salary (Total Salary= BP+(BP×DA/100)+ (BP×HRA/100) ) and print all the details of ‘n’ employees.