Greetings all.
I need help to create a c program for computation of moving average.

A moving average would look like this:
Average = 0.0 (Use doubles)
Number of elements = 0.0
Total = 0.0
While there are more numbers:
Ask for a new number.
Add new number to total.
Add 1 to number of elements.
Divide total by number of elements.
Store in average.

And here is a lovely snippet of code for you to get you started.

#include <stdio.h>
int main(){
    double average=0;
    double sum=0;
    double entry;
    char keepGoing='y';
        printf("Please input your value: ");

        // Do something awesome.

        printf("Keep going?");
    return 0;