Question from the Language C - Fundamentals test

Write a C program that calculates the average of two notes.

Easy

What does the following code do ?

int main()
    {
    const float SEMESTER_AVERAGE = 15.7;
    float note1 = 12.75;
    float note2 = 18.0;
    SEMESTER_AVERAGE = (note1+note2)/2;
    
    return 0;
    }
Author: KahinaStatus: PublishedQuestion passed 145 times
Edit
2
Community EvaluationsNo one has reviewed this question yet, be the first!