Question: Create a page in PHP that will display a random math question for kids. It should have 2 random numbers and a random operator (Should
Create a page in PHP that will display a random math question for kids. It should have 2 random numbers and a random operator (Should use division, multiplication, addition, and subtraction). Keep the random numbers between 1-10 for school kids.
Example:
random # 1: 4
random # 2: 10
random operator "+"
Page would display a form with the text 4+10= and a submit button.
When the user enters in a number and submits, reload the same page and let them know if they answered it correctly. If they did not, show them the correct answer.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
