Start learning free

LESSON 86 OF 289 · CONDITIONAL STATEMENTS

Exercise: Student has Passed

Lesson

We created three variables to store the grades obtained by a student at math, english and science.

You need to compute the average of the grades and print to the console if the student has passed or not. An average of 5 or more is a pass: print "Passed the test", otherwise "Failed the test".

The lesson prints the average for you after your code (grade = 6.667), so don't print it yourself.


Assignment
Follow the Coding Tutorial and let's practice with everything we've learned!


STEP 1 OF 4
    Ctrl + Enter to check