#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
double height;
double total = 0;
int num = 0;
while (1) {
if (scanf("%lf", &height
) != 1) { continue;
}
if (height == 0) break;
total += height;
num++;
}
if (0 < num) {
printf("平均=%f\n", total
/ num
); }
return 0;
}
I2RlZmluZSBfQ1JUX1NFQ1VSRV9OT19XQVJOSU5HUwoKI2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpCnsKCWRvdWJsZSBoZWlnaHQ7Cglkb3VibGUgdG90YWwgPSAwOwoJaW50IG51bSA9IDA7CgoJd2hpbGUgKDEpIHsKCQlwcmludGYoIui6q+mVtygw44Gn57WC5LqGKToiKTsKCQlpZiAoc2NhbmYoIiVsZiIsICZoZWlnaHQpICE9IDEpIHsKCQkJY29udGludWU7CgkJfQoJCWlmIChoZWlnaHQgPT0gMCkgYnJlYWs7CgkJdG90YWwgKz0gaGVpZ2h0OwoJCW51bSsrOwoJfQoKCWlmICgwIDwgbnVtKSB7CgkJcHJpbnRmKCLlkIjoqIg9JWZcbiIsIHRvdGFsKTsKCQlwcmludGYoIuW5s+Wdhz0lZlxuIiwgdG90YWwgLyBudW0pOwoJfQoKCXJldHVybiAwOwp9Cg==