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

Author
Message
Acrod1981
6
Years of Service
User Offline
Joined: 23rd Nov 2018
Location:
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 "So"
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
19
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: 2024-11-23 12:34:37
Your offset time is: 2024-11-23 12:34:37