Answer:
A. We all learn differently (edge 2020)
Explanation:
Answer:
The answer to this question is given below in the explanation section.
Explanation:
First, we need to convert these hexadecimal numbers into decimal numbers, then we can easily identify which one is the lowest hexadecimal.
The hexadecimal numbers are F2, 81, 3C, and 39.
F2 = (F2)₁₆ = (15 × 16¹) + (2 × 16⁰) = (242)₁₀
81 = (81)₁₆ = (8 × 16¹) + (1 × 16⁰) = (129)₁₀
3C = (3C)₁₆ = (3 × 16¹) + (12 × 16⁰) = (60)₁₀
39 = (39)₁₆ = (3 × 16¹) + (9 × 16⁰) = (57)₁₀
The 39 is the lowest hexadecimal number among the given numbers.
Because 39 hex is equal to 57 decimal.
39 = (39)₁₆ = (3 × 16¹) + (9 × 16⁰) = (57)₁₀
Answer:
In C++:
int PrintInBinary(int num){
if (num == 0)
return 0;
else
return (num % 2 + 10 * PrintInBinary(num / 2));
}
Explanation:
This defines the PrintInBinary function
int PrintInBinary(int num){
This returns 0 is num is 0 or num has been reduced to 0
<em> if (num == 0) </em>
<em> return 0; </em>
If otherwise, see below for further explanation
<em> else
</em>
<em> return (num % 2 + 10 * PrintInBinary(num / 2));
</em>
}
----------------------------------------------------------------------------------------
num % 2 + 10 * PrintInBinary(num / 2)
The above can be split into:
num % 2 and + 10 * PrintInBinary(num / 2)
Assume num is 35.
num % 2 = 1
10 * PrintInBinary(num / 2) => 10 * PrintInBinary(17)
17 will be passed to the function (recursively).
This process will continue until num is 0