Subject: PHP

Nested Ternary Operator

Create a variable $score = 75

Use a nested ternary operator to check if the score is greater than or equal to 90, between 80 and 89, or less than 80, and display the respective grade ("A", "B", "C").

Select file or drag and drop

PNG, JPG, SVG

Preview