Program: you need to create a program that counts the number of numbers between 150 and 200.
This is what I have so far, but it's not effective. It is an array of 500 number, I did not add the array because of obvious reasons. Please assist.
#include
int main()
{
int i=0;
int sum;
float a[]={.....}
for (i=0;i>150&& i<200;i++)
sum=i;
printf("There are %d numbers between 150 and 200\n", sum);
return 0;
}
Can you write this program in c language? You need to implement a function that counts the numbers.