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
C++ Coding Question Rounding to nearest 10 and rotating once clockwise In this coding exercise, you are asked to write t
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am