Write a statement that increases numPeople by 5. Ex: If numPeople is initially 10, the output is: There are 15 people.
1
Expert's answer
2020-11-05T04:12:23-0500
#include<iostream>intincFive(int nP){
return nP += 5;
}
intmain(){
int numPeople;
std::cout << "Please enter the number of people : ";
std::cin >> numPeople;
std::cout << "There are " << incFive(numPeople) << " people.\n";
}
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments