#include <iostream>
using namespace std;
int main() {
int numKidsA;
int numKidsB;
int numKidsC;
int numFamilies;
double avgKids;
cin >> numKidsA;
cin >> numKidsB;
cin >> numKidsC;
cin >> numFamilies;
/* Your solution goes here */
avgKids = (numKidsA + numKidsB + numKidsC) / (double)numFamilies;
cout << avgKids << endl;
return 0;
}
Comments
Leave a comment