logo

Crowdly

Consider the following block of code, where each of the four (4) variables (a, ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Consider the following block of code, where each of the four (4) variables (a, b, c, and answer) stores an integer value :

if (a > b)

if (b > c)

answer = c;

else

answer = b;

else

if (a > c)

answer = c;

else

answer = a;

Which of the following sets of values for a, b, and c will cause answer to be assigned the value in variable b?

0%
0%
100%
0%
0%
More questions like this

Want instant access to all verified answers on learning.monash.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!