Jump to content
Sign in to follow this  
seargent master

combo solver

Recommended Posts

seargent master

yay my second script kinda junky but hey it works:graduated:

type in the problem and it will solve it :whistle:

Dim $combos
For $pens=0 to 20
    for $notebooks=0 to 20
        For $pencils=0 to 20
            if ($pens*1.00)+($notebooks*1.50)+($pencils*.50)=20.00 Then;change the variables and prices to whatever the problem ask you
                $combos = $combos & "pens:" & $pens & " notebooks:" & $notebooks & "pencils:" & $pencils & @CRLF


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