Unable to get output of this program,add bonus to employee salaries
Code:#include<stdio.h>
main()
{
int salary[5],i;
printf("Enter the salaries");
for(i=0;i<=4;i++)
{
scanf("%d",&salary[i]);
bonus(salary[i]);
}
getch();
}
bonus(int a)
{
int net,bon;
bon=10*a/100;
net=a+bon;
printf("the net salary is%d",net);
}