well,i am a new programmer in vb6 so i dont know much about vb6.So i have 3 questions.

1) Finding sum of all the numbers from 1 to 100 by loop method.
2) Finding factorial of a number.
3) organizing table of any word.
    eg. 9*1=9
        9*2=18       and so on upto 20

Recommended Answers

All 2 Replies

okay..
How far you doing this? show some effort here..

Finding sum of all the numbers from 1 to 100 by loop method

Dim x As Integer, y As Integer

y = 0

For x = 1 To 100
    y = y + 1
Next x

txtSum.Text = y
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.