write a program that ask the student to enter an answer to a math problem. The user should enter two values, one at a time, and then ask for an answer. The program should display if the entered answer is correct or not and display the correct answer if the user entered the wrong answer

Sure! Here's an example of a program in Python that asks the user to enter a math problem and then checks if their answer is correct.

```python
# Ask the user for the first number
num1 = int(input("Enter the first number: "))

# Ask the user for the second number
num2 = int(input("Enter the second number: "))

# Ask the user for their answer
user_answer = int(input("Enter your answer: "))

# Calculate the correct answer
correct_answer = num1 + num2

# Check if the user's answer is correct
if user_answer == correct_answer:
print("Your answer is correct!")
else:
print("Your answer is incorrect.")
print("The correct answer is:", correct_answer)
```

In this program, we use the `input()` function to get the user's input for the first number, second number, and their answer. The `int()` function is used to convert the input into an integer.

We then calculate the correct answer by adding `num1` and `num2`. Finally, we compare the user's answer to the correct answer using an `if` statement. If the answers are the same, we print a message saying the answer is correct. Otherwise, we print a message saying the answer is incorrect and display the correct answer.

You can run this program by saving it with a `.py` extension (e.g., `math_program.py`) and executing it using a Python interpreter.