Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions phone.cpp
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#include <iostream>
using namespace std;
struct phone
struct Phone
{
int area_code,exchange,number;
};
int main()
{
phone a,b;
Phone a,b;
a.area_code=212;
a.exchange=767;
a.number=8900;
cout<<"Enter your areacode,exchange, and number ";
cout<<"Enter your Areacode,Exchange, and Number ";
cin>>b.area_code>>b.exchange>>b.number;
cout<<"My number is ("<<a.area_code<<") "<<a.exchange<<"-"<<a.number<<"\n";
cout<<"Your number is ("<<b.area_code<<") "<<b.exchange<<"-"<<b.number;
Expand Down