#include <stdio.h>
int main()
{
float a[4]={.02, .05, .055, .01};
int i;
for (i=0; i<=300; i++)
if (a[i]>0.4 && a[i]<0.6) count++
printf("There are %d numbers between .4 and .6\n", some code???);
return 0;
}
I have to count how many numbers there are between .4 and .6 using c++ code and this is how far I got. There are actually 500 numbers in the program that I have to count, but to make things simple I put 4 numbers in there. Can anyone please tell me how to complete the program? Thanks!!