include iostream using namespace std struct address string street stri

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <iostream>
using namespace std;
struct address {
string street;
string house;
int apartment;
};
int main() {
address address;
cout << "Enter the address:" << endl << "Enter Street:" << endl;
cin >> address.street;
cout << "Enter House:" << endl;
cin >> address.house;
cout << "Enter apartment:" << endl;
cin >> address.apartment;
cout << "The entered address:" << endl << address.street << ", " << address.house << ", " << address.apartment << " ";
return 0;
}