+ 6
Problems in php challenges
I have found some quizzes that have wrong answer and even of java and c++. Have you also encountered such quizzes?
2 Réponses
0
PHP error in quiz;
$random = rand(1,3); // generates random number between 1 and 3 includ 3.
$result = 24 / $random; 24/1==24 && 24/2 ==12 && 24/3 == 8;
echo $result; //The answer is 6:-)))
Run this code on playground - u'll get 12!
possible answers: 8, 12, 24, 6 - u have to select only one:-)))