Untitled
unknown
plain_text
3 years ago
172 B
5
Indexable
#include <iostream>
using namespace std;
int main ()
{
int a=-1, b, c = 0;
do
{
cin >> b;
c+=b;
a++;
} while (b != 0);
cout << float(c)/a;
}
Editor is loading...