Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / What is wrong with this codee

Years of Service
User Offline
Joined: 23rd Nov 2018
Posted: 23rd Nov 2018 09:44
Hi im trying to find out how my code is wrong what i need it to do is if you answered say 6 to 10 for the first question and 4 to 8 in the second question and 3 to 7 in the third question, you would be called an elf (it is for a fantasy game).

Here is the code:

INPUT "What is your name? ",name$
PRINT name$
INPUT "How many times did you keep the ball bouncing on the full? ",ball$
INPUT "How far did you do the standing jump? ",jump$
INPUT "How fast (in seconds) did you run twenty metres? ",run$
IF ball$ = 20
IF jump$ = 8
IF run$ = 10
THEN PRINT "You are an Elf"
Green Gandalf
VIP Member
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 26th Nov 2018 19:37 Edited at: 26th Nov 2018 19:38
I'm assuming you are trying to write some simple code iusing DBPro.

The following version of your code (a) compiles, (b) runs and finally (c) produces results you can actually see. Can you see what I had to do to get your code to do those three things?

Login to post a reply

Server time is: 2023-09-30 03:17:51
Your offset time is: 2023-09-30 03:17:51