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.

Code Snippets / Math problem solver

Author
Message
Emperor Baal
20
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 17th Sep 2004 06:53 Edited at: 17th Sep 2004 07:09
This code can solve math problems for you. Ye know like:

numbers are: 75, 5, 2, 10, 15, 3
do something with those to get: 887.5

it only works with 6 numbers and 1 answer though. In the problem above, it calculates this in 2 sec:

75 * 5 = 375
375 / 2 = 187.5
187.5 - 10 = 177.5
177.5 * 15 = 2662.5
2662.5 / 3 = 887.5!

im working on a better version now

this code will calculate it for you:



Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 18th Sep 2004 14:30
You got a bit of homework to finish do you?
lol, jk.

Looks nice

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!
Emperor Baal
20
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 18th Sep 2004 20:26
Thanks, just finished compiling a C++ version

Login to post a reply

Server time is: 2024-11-23 19:35:55
Your offset time is: 2024-11-23 19:35:55