Find the else that indentation hid

A learner intends to print APPROVED only when score >= 50 and attendance >= 75, and REJECTED in every other valid case. The starter uses fixed inputs 40 and 90. Explain its actual behavior and show which if owns its else; indentation is not evidence.

    Repair the logic with explicit braces. Your complete program must instead read score and attendance, each in 0..100, print APPROVED or REJECTED, and print invalid for failed/out-of-range input. Show test cases immediately below, exactly on and immediately above both thresholds.

Assume every integer token supplied is representable in int.

#include <stdio.h>
int main(void)
{
    int score = 40;
    int attendance = 90;
    if (score >= 50)
        if (attendance >= 75)
            puts("APPROVED");
    else
        puts("REJECTED");
    return 0;
}

