Untitled
Anonymous
plain_text
11/09/2022 12:21 PM
244 B
11
Indexable
#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);
}Editor is loading...