Program to create a group of given number by range & frequency


#include
#define MAXVAL 50
#define COUNTER 11
main()
{
float value[MAXVAL]
int i, low, high;
int group[COUNTER]={0,0,0,0,0,0,0,0,0,0,0};
clrscr();
for(i=0; i scanf("%f", &value[i]);
printf("\n");
printf("Group\tRange\tFrequency\n\n");
for(i=0; i{
low=i*10;
if(i==10)
high=100;
else
high=low+9;
printf("%2d\t%3d to %3d\t%d\n", i+1, low, high, group[i]);
}
getch();
}

No comments:

Post a Comment