If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Conditionals 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?
Choose 1 answer:
🤔