Question: Define a function PrintCity() that takes two stringparameters and outputs as follows, ending with a newline. Thefunction should not return any value. Ex: If the

Define a function PrintCity() that takes two stringparameters and outputs as follows, ending with a newline. Thefunction should not return any value.

Ex: If the input is Reading Albright, then the outputis:

Reading is the location of Albright College.

----------------------------------------------------------------------------------------------------------------------------------------------------------------

#include
using namespace std;

/* Your code goes here */

int main() {
string location;
string name;

cin >> location;
cin >> name;

PrintCity(location, name);

return 0;
}

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 Programming Questions!