Sign in to follow this  
Followers 0
LimeSeed

algorithm program

2 posts in this topic

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???

thanks


global $warming = true

Share this post


Link to post
Share on other sites



Maybe...

$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]

Next

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

8)


NEWHeader1.png

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  
Followers 0