#include<stdio.h>
#include<conio.h>
{
int i,c=0;
float s[200];
clrscr();
printf("\nEnter salaries for 200 employees");
for(i=0;i<200;i++)
scanf("%f",&s[i]);
for(i=0;i<200;i++)
{
if (s[i]>5000 && s[i]<10000)
c=c+1;
}
printf("Total number of employees getting salary between 5000 and 10000 are %d",c);
getch();
}
No comments:
Post a Comment
Rahul-Notes