0

Can some one please help me on this issue as I have spent time going around it without making any headway.

I have data in an array of size say 3O.

1. I want to take the first five elements of the array, find their mean value. Store the value in another array

2.Then move to the second element of the array,from thier find the mean value of the 5 succeding elements.store the value in the array as above.

3.Then wove to the 3rd element,do the same thing above till the last element which is 30 in this case.

```
float tabdata[30] = {1,2,3,4,...,30};
char *store;
float sum;
int count=0;
for(int j=0;j<tabdata[30-1];j++)how to
sum += tabdata[j];
if (count=5)
{
float mean= sum/5;
store[j]=mean;
sum=0;
count=0;
}
count=j+1;
---
----
....need help to complete this loop please.
```