[Share]Test your development skills

Posts 16–30 of 35 · Page 2 of 3
Quote Originally Posted by Jason View Post


Um, didn't see any of the surrounding code, is this in a loop or something? What's the inital "num" variable and what is the "length" variable.
yeah its a loop

num and length are auto-set to 1

then length = num.tostring.length
then the division
then num =+ 1


Also im learning java so i hate i's -.-(solved the first one with java )
Quote Originally Posted by mnpeepno2 View Post
yeah its a loop

num and length are auto-set to 1

then length = num.tostring.length
then the division
then num =+ 1


Also im learning java so i hate i's -.-(solved the first one with java )
Hang on, why all the division? Why not just see if:

EDIT: The number was 116396280

EDIT 2: Is this question 5 from project Euler? I just finished it if you want the solution.
Quote Originally Posted by Jason View Post


Hang on, why all the division? Why not just see if:

EDIT: The number was 116396280

EDIT 2: Is this question 5 from project Euler? I just finished it if you want the solution.
yes it is the 5th one, as said in the first post.

why 11-20?

because 11-20 already cover 1-10 through factors.

EDIT: cant be the number, it gave me a big no no from euler.
Quote Originally Posted by mnpeepno2 View Post
yes it is the 5th one, as said in the first post.

why 11-20?

because 11-20 already cover 1-10 through factors.

EDIT: cant be the number, it gave me a big no no from euler.
It isn't that number. That was the number your line of thinking returned. I did it a different way and got the right answer, are you interested in the solution?



WOO!
Quote Originally Posted by Jason View Post


It isn't that number. That was the number your line of thinking returned. I did it a different way and got the right answer, are you interested in the solution?



WOO!
yesh!

/shrt
Quote Originally Posted by mnpeepno2 View Post
yesh!

/shrt
Here's mine:

Code:
        Dim curNum As Long = 1
        Do
            For i As Integer = 1 To 20
                If Not curNum Mod i = 0 Then
                    Exit For
                ElseIf i = 20 Then
                    MsgBox("Success: " & curNum.ToString)
                    Exit Do
                End If
            Next
            curNum += 1
        Loop


Enjoy.
I know who they are, I had a very long discussion with founder a while ago.
Most of the "leechers" fail at logic algorithms... ;o I wonder why..
Quote Originally Posted by 'Bruno View Post
Most of the "leechers" fail at logic algorithms... ;o I wonder why..
Don't talk about NG like that. He is GM now.
Well, one of the things he told me , was they are very strict about posting solutions on other , or post their problems on other forums. So let's keep this thread as general as possible to respect their wishes
i would have posted on their forum, but there is no visual basic, just basic.

EDIT: maybe change the title to programming languages, not just visual basic?


I'm leading? :P Damn it aint updating(finished 20 now =3, 19 and 20 were easy xD)
Quote Originally Posted by Hell_Demon View Post


I'm leading? :P Damn it aint updating(finished 20 now =3, 19 and 20 were easy xD)
Bah, I was sleeping. Time to catch up while you're sleeping!

And TEAM Retox? Unless it says Hell_Daddy, I'm not going to believe it's you
Quote Originally Posted by Jason View Post


Bah, I was sleeping. Time to catch up while you're sleeping!

And TEAM Retox? Unless it says Hell_Daddy, I'm not going to believe it's you
My youtube channel: YouTube - TeamRetox's Channel
Check description of any of the vids Team.Retox # TehKiller = me

Also, WOOT LEVEL 1 ;D
Posts 16–30 of 35 · Page 2 of 3

Post a Reply

Tags for this Thread

None

Talk with us