#include <iostream>
#include <string>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
void inputData();
void displayData();
string name, addr1, addr2, postalCode;
int main()
{
inputData();
displayData();
return 0;
}
void inputData()
{
cout << "Kindly provide your address details \n"
<< "Name: ";
getline(cin, name);
cout << "Address1: ";
getline(cin, addr1);
cout << "Address2: ";
getline(cin, addr2);
cout << "PostalCode: ";
getline(cin, postalCode);
}
void displayData()
{
system("cls");
cout << name
<< "\n"
<< addr1
<< "\n"
<< addr2
<< "\n"
<< postalCode << endl;
}