Posts by Ruben • 1 point
1 post
-
-2
votes1
answer35
viewsQ: I’m making a php code to make the test media and at the end seem approved, failed or recovery but I don’t know what’s going wrong
<?php $prova1 = 20; $prova2 = 12; $prova3 = 5; $media = ($prova1 + $prova2 + $prova3)/3; echo "A média deu: $media"; if ($media >= 9,5) { echo "// Parabéns você foi aprovado"; } elseif ($media…