Liberity Basic - Math Quiz?

  • Thread starter Thread starter Thomas H
  • Start date Start date
T

Thomas H

Guest
Hey. I’m building a basic math quiz programme in liberity basic, here is my code so far:

PRINT "Welcome to the maths challenge"
INPUT "What is your name?";name$
PRINT "Hello " ;name$
CLS
PRINT "Lets begin " ;name$; ", time for the questions"

Q = 1
WHILE Q < 5
PRINT "Question " ;Q
PRINT "What is "; INT(RND(0) * 10); " + " ;INT(RND(0) * 10)
INPUT A
IF A = INT(RND(0) * 10) + INT(RND(0) * 10) THEN
Q = Q + 1
WEND
END





There is just one problem, the WEND isn’t working. When the person has answered the question correctly, WEND should direct them back to WHILE, I’m pretty sure of it. I am a beginner so try not to tear apart my work. 
 
Back
Top