C++ Coding Question Rounding to nearest 10 and rotating once clockwise In this coding exercise, you are asked to write t
Posted: Sun Jul 03, 2022 11:22 am
C++ Coding Question
Rounding to nearest 10 and rotating once clockwise
In this coding exercise, you are asked to write the body of afunction called passReference, which takes three integers byreference, round off each number to the nearest 10, and thenright rotate all the numbers clockwise only once.
For example, if variables a, b,and c contains the following values:
Then values of variables after callingthe passReference(&a, &b, &c) will be:
Sample inputs
Sample outputs
Rounding to nearest 10 and rotating once clockwise
In this coding exercise, you are asked to write the body of afunction called passReference, which takes three integers byreference, round off each number to the nearest 10, and thenright rotate all the numbers clockwise only once.
For example, if variables a, b,and c contains the following values:
Then values of variables after callingthe passReference(&a, &b, &c) will be:
Sample inputs
Sample outputs