Menu

[solved] – Question 99406

#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 */

cout << avgKids << endl;

return 0;
}

Compute the average kids per family. Note that the integers should be type cast to doubles.

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *