Answer:
The program to this question can be given as:
Program:
#include <iostream> //header file.
using namespace std; //using namespace
int main() //main method
{
int areaCode,exchange,lastFour; //define variable.
areaCode=800; //assign value.
exchange=555; //assign value.
lastFour=1212; //assign value.
cout<<areaCode<<"-"<<exchange<<"-"<<lastFour; //print value.
cout<<endl; //change values of variable.
areaCode=212; //assign value
exchange=867; //assign value
lastFour=5309; //assign value
cout<<areaCode<<"-"<<exchange<<"-"<<lastFour; //print value.
return 0;
}
Output
800-555-1212
212-867-5309
Explanation: