# 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 / calculator program

Message
Posted: 13th Jul 2004 01:17 Edited at: 13th Jul 2004 01:19
Posted: 13th Jul 2004 02:17
calculators do more then just adding numbers maybe you should make it so your able to add, divide, subtract and multiply
Posted: 13th Jul 2004 03:34
year.. but im not so good at coding yet....
im not a newbie.... and im not a good coder.... YET!
i think im medium.... im reding in "beginners guide to darkbasic game programming" so im learn some new things every day..
Posted: 13th Jul 2004 05:04 Edited at: 13th Jul 2004 05:34
Dude, if you don't know how to make it subtract, multiply, or divide, that's really sad. It's one of the first things you learn in the DB help files.

Subtract: -
Multiply: *
Divide: /

Simple as that.

Plus, why did u assign variables to variables??

You could have just said c = a+b....

Tell ya what, I'll help you though. I'm going to use your code then give it to you doing all four of those just to show you how it would work. Okay? So just keep checking here.

Member of Bee Hive Studios | freewebs.com/beehivestudios
Currently developing: 3D PacMan (tentative title)
Posted: 13th Jul 2004 05:25 Edited at: 13th Jul 2004 05:40
Here, try this! I'm sure there are better ways to code a program like this but I am also a newb so this is the best I could do with my knowledge so far.

Wether that's 20 lines or not, idk, but I'm just showing the nerd something...

Member of Bee Hive Studios | freewebs.com/beehivestudios
Currently developing: 3D PacMan (tentative title)
Posted: 18th Jul 2004 18:33
haha....is this guy serious?

Bah