Computer Science, asked by birajshrestha2007, 14 days ago

Write a program which read salary of 100 employee and count the number of employees who are getting salary from 5,000 to 15,000​

Answers

Answered by shivanshrider
0

Answer:

#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]<=15000)

{

count=count+1;

}

}

printf("Number of employees getting salary between 5000-15000=%d",count);

getch();

}

Similar questions