#include<iostream.h>
#include<conio.h>
struct
phone
{
int
areacode,exno,num;
};
int
main()
{
struct
phone p1,p2;
clrscr();
cout<<"
";
p1.areacode=212;
p1.exno=456;
p1.num=2809;
cout<<"My
no is:
"<<"("<<p1.areacode<<")"<<p1.exno<<"-"<<p1.num;
cout<<"\n";
cin>>p2.areacode>>p2.exno>>p2.num;
cout<<"Your
no is:
"<<"("<<p2.areacode<<")"<<p2.exno<<"-"<<p2.num;
return
0;
}
Output