Question: 13. Write the Visual Basic code for a pretest loop that uses an Integer variable named intOdd to display the odd integers from 7 through

13. Write the Visual Basic code for a pretest loop that uses an Integer variable named intOdd to display the odd integers from 7 through 19 in the lblOddNums control.

Use the For…Next statement. Display each number on a separate line in the control.

Now create a Visual Basic Windows application to test your code. Use the following names for the solution and project, respectively: Odd Numbers Solution and Odd Numbers Project. Save the application in the VB2012\Chap06 folder. Add a button and a label to the interface. Enter your code in the button’s Click event procedure. Save the solution and then start and test the application. Close the Code Editor window and then close the solution.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock