hey rekomeko heres your answer
#include<stdio.h>
#include<conio.h>
void main()
{
int c,d,v,b,x;
clrscr();
c=0;
d=0;
v=0;
b=0;
count=0;
for(count=0; count<=5000; ++count)
{
scanf("%d",&x);
if
{
10000<=x<20000; c=c+1
else if, 20000<=x<30000; d=d+1
else if, 30000<=x<40000; v=v+1
else if, 40000<=x<50000; b=b+1
}
count = count +1
}
print c,d,v,b,x,count'
getch();
}