Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

User Input of value and reult

Hi

I let the user input two numbers. How do I ask the user if the numbers the user have entered is equal to the value of it, lets say addition, in other words how do I make the user answer the mathemathic question that they've created with the actual value of it?

So X + Y = ?

I will only ask and give the + and ? sign in the question while the user gives a value to X and Y + the result of both = (X + Y) = result

Answers

  • Ask the user one value at a time and store them in variables. What is X? What is Y? What is result?

    if (X+Y=result) then answer = true.

Sign In or Register to comment.