#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
int i=9;
int &ir=i;
cout<<"i= "<<i<<" "<<"ir="<<ir<<endl;
ir=20;
cout<<"i="<<i<<" "<<"ir="<<ir<<endl;
i=12;
cout<<"i="<<i<<" "<<"ir="<<ir<<endl;
return 0;
}
#include<iomanip>
using namespace std;
int main()
{
int i=9;
int &ir=i;
cout<<"i= "<<i<<" "<<"ir="<<ir<<endl;
ir=20;
cout<<"i="<<i<<" "<<"ir="<<ir<<endl;
i=12;
cout<<"i="<<i<<" "<<"ir="<<ir<<endl;
return 0;
}