Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
182 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main() {
    int a, b = 0, c = 0;
    cin >> a;
	while (a){
		c += 1;
		b += a;
		cin >> a;
	}
	cout << float(b) / float(c);
}