#include <stdio.h>
struct Employee {
char name[50];
int joining_date;
float salary;
};
int main() {
struct Employee employees[5];
for (int i = 0; i < 5; i++) {
printf("Enter details for employee %d:\n", i+1);
printf("Name: ");
scanf("%s", employees[i].name);
printf("joining_date: ");
scanf("%d", &employees[i].joining_date);
printf("Salary: ");
scanf("%f", &employees[i].salary);
}
printf("\nEntered information for all employees:\n");
for (int i = 0; i < 5; i++) {
printf("Employee %d:\n", i+1);
printf("Name: %s\n", employees[i].name);
printf("joining_date: %d\n", employees[i].joining_date);
printf("Salary: %.2f\n", employees[i].salary);
}
return 0;
}