How to Return the Closest Number Multiple of 10 in C
The challenge
Given a number return the closest number to it that is divisible by 10.
Example input:
Expected output:
The solution in C
Option 1:
Option 2:
Option 3:
Test cases to validate our solution
|
|