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.

The 20 Line Challenge / My first 20 line program! Quizz

Author
Message
Hell Dragon
19
Years of Service
User Offline
Joined: 24th Jan 2005
Location: UK
Posted: 22nd Oct 2005 16:26 Edited at: 22nd Oct 2005 22:44
Hi, This quizz is my first 20 line program(and my second thing in dbp)


20 Lines!

Any comments?

Dark Basic Pro Rulz!
CPU
20
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 22nd Oct 2005 18:00
Not bad for your first time, a few things to note might be that using the : to seperate commands is much more common than using the ; seperator, ;'s are almost never used. Your if statements could be converted into if (statemen) : (things to do if true) : else : (things to do if false) : endif to aid in making your code even smaller, if you did that you could also add a variable that would add up your score and print a final score out of total points possible.

Good job, keep it up!

CPU

[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]
Dgamer
21
Years of Service
User Offline
Joined: 30th Sep 2002
Location:
Posted: 22nd Oct 2005 20:42
Quote: "a few things to note might be that using the : to seperate commands is much more common than using the ; seperator, ;'s are almost never used."


Not true. In fact, almost every other programming language outside DB uses ; instead of :.

As for the program. Its a good start . Although i couldve sworn 25+17 is 42.

Teen Titans is like watching an episode of LiveJournal.
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 22nd Oct 2005 22:42
Yeah, I though that one was a bit strange too
But a good 20-liner, if it's your first.

CPU
20
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 23rd Oct 2005 22:37
Quote: "Not true. In fact, almost every other programming language outside DB uses ; instead of :"


Quite true, but I was leaning just the tinniest bit toward dark basic [pro] and this community in general...

CPU

[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]
flashing snall
18
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 25th Dec 2005 04:52
WHAT 3 x 15 = 45!!!!!!!!!!!!!!

dont assume cause ull make an ass out of you and me!
Les Horribres
18
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 25th Dec 2005 05:25
I like this math quiz...
I always get them wrong, so since they are (were) I might get them right!

Merranvo, The Cool One

Anti-Noob Justice League, an ANJL of Mercy.
Big Man
19
Years of Service
User Offline
Joined: 4th Feb 2005
Location: BEHIND YOU!!!! (but I live in England)
Posted: 27th Dec 2005 16:11
@flashing snall Yeah I know that confused me but just change the code so when 45 is input you get the correct answer text.

Our aim is to keep the loo's clean, your aim can help.
Nigezu
18
Years of Service
User Offline
Joined: 25th Nov 2005
Location: Oulu, Finland
Posted: 28th Dec 2005 20:15
Of course 3 x 15 = 45!!!

Intel Pentium 4 Processor 519 3.06 Ghz, 1536 MB DDR, Ati Radeon 9550 256MB
Diablos
18
Years of Service
User Offline
Joined: 15th Oct 2005
Location: meh?
Posted: 4th Jan 2006 21:11
doesnt 34/2*7-200=-81 ??

bidmas makes it all in order so
34/2=17
17*7=119
119-200=-81

i cant for the life of me figure out how you got 59??

meh my head hurts now.

-Pain is temporary, pride is forever.
The Cure
19
Years of Service
User Offline
Joined: 8th Feb 2005
Location:
Posted: 23rd Jan 2006 13:43
an idea for ur program dragon, hav it so the program randomly generates questions and dynamicly gets the answers. hav a look at this code if i aint makin sense



the str$ command turns a value into a string, allowin it to b attached to writing and the like. enjoy!

Login to post a reply

Server time is: 2024-03-29 10:02:34
Your offset time is: 2024-03-29 10:02:34