#include<stdio.
h>
struct employee
int empl_no;
char name[30];
char designation[25];
char deptt[12];
}emp[10];
int main(){
int i,n;
printf("Enter the no. of employees\n");
scanf("%d", &n);
for(i=0;i<n;i++)
printf("\nEnter the employee record");
printf("\nEmployee number");
scanf("%d",&emp[i].empl_no);
fflush(stdin);
printf("\n name:");
gets(emp[i]. name);
printf("\ndesignation:");
gets(emp[i]. designation);
printf("\ndeptt:");
gets(emp[i].deptt);
printf("Inputted records of the employees are\n");
for(i=0;i<n;i++)
printf("\nEmployee number %d",emp[i].empl_no);
printf("\n name: %s",emp[i].name);
printf("\n designation: %s",emp[i].designation);
printf("\n department: %s",emp[i].deptt);
return 0;