#include <stdio.h>
int main ( )
{
float average; /* The average of a set of numbers */
int i; /* loop index */
int number; /* user entered number */
float sum; /* running total of the numbers */
sum = 0; /* Very important to do this */
/* Read in all numbers and keep a running total */
for (i=0; i < 5; ++i)
{
printf ("Enter an integer value: ");
scanf ("%i", &number);
sum += number; /* running total */
}
average = sum / 5; /* get the average */
/* WHAT DO I DO NOW? */
return (0);
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluICggKQp7CgogICAgZmxvYXQgYXZlcmFnZTsgICAvKiAgVGhlIGF2ZXJhZ2Ugb2YgYSBzZXQgb2YgbnVtYmVycyAgKi8KICAgIGludCBpOyAgICAgICAgICAgLyogIGxvb3AgaW5kZXggICAgICAgICAgICAgICAgICAgICAgICovCiAgICBpbnQgbnVtYmVyOyAgICAgIC8qICB1c2VyIGVudGVyZWQgbnVtYmVyICAgICAgICAgICAgICAqLwogICAgZmxvYXQgc3VtOyAgICAgICAvKiAgcnVubmluZyB0b3RhbCBvZiB0aGUgbnVtYmVycyAgICAgKi8KCiAgICBzdW0gPSAwOyAgICAgICAgIC8qIFZlcnkgaW1wb3J0YW50IHRvIGRvIHRoaXMgICAgICAgICAqLwoKICAgIC8qIFJlYWQgaW4gYWxsIG51bWJlcnMgYW5kIGtlZXAgYSBydW5uaW5nIHRvdGFsICovCiAgICBmb3IgKGk9MDsgaSA8IDU7ICsraSkKICAgIHsKICAgICAgICAgcHJpbnRmICgiRW50ZXIgYW4gaW50ZWdlciB2YWx1ZTogIik7CiAgICAgICAgIHNjYW5mICgiJWkiLCAmbnVtYmVyKTsKCiAgICAgICAgIHN1bSArPSBudW1iZXI7ICAvKiBydW5uaW5nIHRvdGFsICovCiAgICB9CgogICAgYXZlcmFnZSA9IHN1bSAvIDU7ICAgIC8qIGdldCB0aGUgYXZlcmFnZSAqLwoKICAgIC8qIFdIQVQgRE8gSSBETyBOT1c/ICAqLwoKICAgIHJldHVybiAoMCk7Cn0=