Fix the Condition Behind the Branch
EasyThe classify function should return 1 for a passing score (50 or more) and 0 otherwise, but its comparison operator is wrong, so every result is flipped. The program prints classify(72), classify(50), and classify(31). Fix the condition, then read the assembly panel and find the cmp that evaluates the score, the inverted conditional jump (jle) that jumps over the then-block, and the unconditional jmp that skips the else-block.
Success Criteria
Your code must pass 1 test case(s) to complete this exercise. 3 hint(s) are available if you need help.
Sign in to track your progress
You can work on exercises as a guest, but sign in to track your progress and save your submissions.