answersLogoWhite

0

Private Sub Command1_Click()

Dim x,g,n,i,sum as Integer

n=Val(Text1.Text)

x=0

y=1

Print x

Print y

for i=3 To n

Sum = x + y

Print Sum

x = y

y = Sum

Next i

End Sub

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What has the author John Smiley written?

John Smiley has written: 'Learn to Program Databases With Visual Basic (Learn to Program)' 'Learn to Program Visual Basic Objects (Learn to Program)' 'Learn to Program with Visual Basic 6' -- subject(s): BASIC (Computer program language), Microsoft Visual BASIC, Visual Basic (Computer program), Visual programming (Computer science), Windows (Computer programs) 'Learn to Program Visual Basic 6 Examples' 'Introduction to Programming with Visual Basic 6 Part 2' 'Learn to Program Visual Basic Examples (Miscellaneous)' -- subject(s): Microsoft Visual Basic for Windows, BASIC (Computer program language)


How do you write a program in visual foxpro?

Same with other Visual Basic program, programming in FoxPro will require you to have the right syntax.


What is Visual Basic Editor?

There have been many versions of Visual Basic. It is a program which allows you to write other computer programs. Each version of Visual Basic has come with an editor to allow you to write and edit code. This is called the "IDE", or "Integrated Development Environment".


How do you create a program in visual basic?

arrays programms in visual basic


Program to print all the even numbers of an array in visual basic?

find even number in array


What is a visual basic code?

Visual Basic code is a program or library that has been written using the Microsoft Visual Basic programming language.


Why visual basic is required?

visual basic is required for program the softwares,games,calculators etc


What has the author Eric Brierley written?

Eric Brierley has written: 'Visual Basic 5 how-to' -- subject(s): BASIC (Computer program language), Microsoft Visual BASIC 'The Waite Group's Visual Basic 6 how-to' -- subject(s): BASIC (Computer program language), Microsoft Visual BASIC


Vb is extension of?

A Visual Basic program.


Who is the inventor of visual basic program?

microsoft


What are the different program structure of visual basic?

Program in visual basic are the component being used by the programer that will give the user fast and easy way.


How much math is needed to program Visual Basic?

You don't really need math to write programs in Visual Basic or most any other language unless the program is about mathematical situations. Understanding of mathematical logic concept (AND OR NOT IMPLIES) does makes thing easier.