Main content
Course: AP??/College Computer Science Principles?>?Unit 3
Lesson 5: ConditionalsConditionals with if, else, and Booleans
Problem
This code is from a program that diagnoses anemia, a health condition.
IF (ironLevel < 10)
{
diagnosis ← "anemic"
}
ELSE
{
diagnosis ← "normal"
}
Which of these tables shows the expected values of
diagnosis
for the given values of ironLevel
??
Related content