Problems in php challenges | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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?

16th May 2017, 12:45 PM
Siddharth Saraf
1 Answer
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:-)))
26th Jul 2017, 7:06 PM
Val🐯
Val🐯 - avatar