Main content
Mathematical procedures and constants
Problem
Consider the following code segment:
a ← 3
b ← 8
c ← 5
result ← min( max(a, b), c)
The code relies on these built-in procedures:
Name | Description |
---|---|
min(a, b) | Returns the smaller of the two arguments. |
max(a, b) | Returns the greater of the two arguments. |
After the code runs, what value is stored in
result
??
Related content