Number of employees getting salary between 5000-10000 -C Program

#include<stdio.h>
#include<conio.h>
main()
{
int salary[10],i,count=0;

for(i=0;i<10;i++)
{
printf("input salary of employee:");
scanf("%d",&salary[i]);
}
for(i=0;i<10;i++)
{
if(salary[i]>5000&&salary[i]<=10000)
{
count=count+1;
}
}
printf("Number of employees getting salary between 5000-10000=%d",count);
getch();
}




Leave a Reply

Your email address will not be published. Required fields are marked *

Enter Captcha Here : *

Reload Image