write a program that reads a number of employees, then enter the employee id , salary and age such as:
No. Of employee = 6
finally, print the array values after checking.
- using the following functions implement the program:
• void get_data(int x[],int no);
// to read id , salary and age from the user .
• void check_salary( int sal[], int age[],int no);
//to check if the age >=60, then salary/2
• void display(int id[], int sal[], int age[],int no);
// print the array values after checking.
Output:
Id salary age
103 6000 22
546 7000 25
264 5000 21
756 3000 30
760 5000 60
435 7500 70