Code:
#include<stdio.h>#include<math.h>
#define N 250
int main()
{
float a[N]={811.594,155.670,80.859,94.000,0.262,25.623,457.023,984.578,134.533,41.242,65.121,8.639, 9.048,50.725,367.316,665.240,0.310,6.573,44.645,0.895,2.097,542.671,0.801,9.622,699.939,
860.123,7.442,572.632,347.332,4.520,2.346,899.460,9.257,280.994,33.103,6.917,63.084,2.147, 602.037,34.400,207.035,610.862,510.798,384.195,66.511,73.813,28.353,0.455,642.567,592.365,
0.429,390.547,29.399,9.592,998.127,4.489,72.900,445.181,74.800,11.912,7.055,1.754,806.574, 612.518,116.010,58.165,86.229,462.407,767.028,9.494,54.029,4.808,8.092,3.840,8.309,5.891,
766.304,3.690,23.049,3.797,48.046,73.041,816.971,28.815,6.538,0.139,12.927,1.468,325.504, 252.919,8.828,825.905,8.414,89.715,195.159,713.316,8.033,60.206,1.269,22.268,72.693,3.552,
796.728,2.614,49.046,51.873,92.447,14.496,46.786,9.247,1.053,28.028,91.845,5.086,59.356, 39.928,7.405,16.381,4.317,75.484,141.754,43.461,561.134,339.839,185.844,95.934,714.524,
652.879,9.155,928.245,610.435,0.585,5.848,3.441,89.534,4.685,90.123,4.778,542.252,811.509, 88.518,67.992,3.908,81.427,82.676,3.812,443.006,9.816,26.903,62.345,7.255,31.488,8.656,
3.055,2.282,7.377,1.698,359.694,36.820,5.927,106.018,430.541,1.513,729.546,9.143,9.760, 256.516,210.061,2.039,4.382,47.178,8.500,27.128,2.241,336.265,1.007,78.052,4.196,5.518,
4.011,97.252,41.931,6.709,939.500,4.995,15.107,1.875,31.338,1.540,1.917,2.449,340.436, 3.458,85.963,6.296,13.044,7.033,14.899,620.605,59.634,8.744,44.663,3.440,5.132,366.882,
44.704,516.307,8.589,893.968,101.669,90.267,1.507,74.073,11.016,912.024,4.578,36.568, 4.440,497.334,269.221,608.552,92.279,74.272,0.310,218.616,8.141,360.163,643.359,80.840,
289.527,6.508,90.192,8.661,14.624,92.793,89.858,8.922,47.441,8.370,9.899,954.655,1.534, 8.504,28.940,359.621,2.442,1.475,22.160,50.042,50.506};
int c=0; int i; int count[250]; for (i=0;i<N;i++) {
c=a[i]; if (c<356) { count[c]=0;
count[c]++;
}
}
printf("There are: %d numbers less than 356\n",count[c]);
return 0;
}