Untitled
Anonymous
plain_text
11/08/2022 10:43 PM
232 B
19
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...