Professional Documents
Culture Documents
Let a , b , c, d and e be five integer numbers. Input these five numbers from
user. Write a C++ program with a function having following prototype.
void rotate(int& a, int& b, int& c, int& d, int& e)
rotate function swaps the values of five input parameters a,b,c,d and e inside
the function. Call the rotate function in main program and disply the
updated values of variables.
swap values such that a = b , b = c, c=d, d=e and e = a.
1*1=1
column-2
2*1=2
3*1=3
................. 9*1=9
1*2=2
2*2=4
3*2=6
................. 9*2=18
1*3=3
2*3=6
3*3=9
................. 9*3=27
1*9=9
2*9=18
3*9=27
.
9*9=81