Posts by Ale • 11 points
1 post
-
1
votes6
answers636
viewsA: How do you turn the average to red?
I used the short form of if to make the code drier. for($i=0; $i < count($alunos); $i++){ $alunos[$i]["media"] <= 5?$cor='red':$cor='blue'; echo "<b>Nome do Aluno:…