void display2(char char1, int num)
{
for(int count = 1; count <= num; count++)
{
cout << char1;
}
cout << endl;
}
int main()
{
char char1, char2; int num, num2; string name, address, city;
cout << "Enter the character to be used in the heading:" << endl;
cin >> char1;
cout << "Enter the number of times the header character wil be used:" << endl;
cin >> num;
cout << "Enter full name:" << endl;
getline(cin, name);
cout << "Enter street address:" << endl;
getline(cin, address);
cout << "Enter city, state, zip code:" << endl;
getline(cin, city);
cout << "Enter character to be used in footer" << endl;
cin >> char2;
cout << "Enter the number of times the footer character will be used:" << endl;
cin >> num2;
cout << endl;
display2(char1, num);
cout << name << endl;
cout << address << endl;
cout << city << endl;
char1 = char2;
num = num2;
display2(char1, num);
return 0;
}