Question: Two integers are read from input into variables num _ people 1 and num _ people 2 . Assign avg _ people _ per _

Two integers are read from input into variables num_people1 and num_people2. Assign avg_people_per_team with the average people per team. Then, convert avg_people_per_team to an integer.
Click here to show example
Ex: If the input is:
12
15
then the output is:
13
Note: The average is the sum of all values divided by the number of values.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!