Answer:
#include <iostream>
using namespace std;
void RotateRight3( int& p1, int& p2, int& p3) {
int = tmp;
tmp = p3;
p3 = p2;
p2 = p1;
p1 = tmp;
}
int main() {
int n1, n2, n3;
cin >> n1;
cin >> n2;
cin >> n3;
RotateRight3(n1, n2, n3);
cout << n1 << " " << n2 << " " << n3 << end1;
return 0;
}