Jump to content
Sign in to follow this  

algorithm program

Recommended Posts


how do i make it so that i can turn a number into another number? i want to make it so that when the algorithm or code is typed in, it would replace some of the numbers with other for instance multiply the first number by 5, divide the second by 2 and so on. thanks.

i already tried

if chr() = '1' then

$1 = 1 * 5

;something like this???


global $warming = true

Share this post

Link to post
Share on other sites


$number = "123456"
$answer = ""

$split = StringSplit($number, "")

$split[1] = $split[1] * 5

$split[2] = $split[2] / 2

for $x = 1 to $split[0]
    $answer = $answer & $split[$x]


MsgBox(0x0, "Answer", $answer)



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.