30.07.2013 Views

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

140 Control Structures: Part 1 Chapter 4<br />

c) The following code should print the squares of 1 <strong>to</strong> 10 in a MessageBox.<br />

Dim number As Integer = 1<br />

Do While number < 10<br />

MessageBox.Show(number ^ 2)<br />

While End<br />

d) This segment should print the values from 888 <strong>to</strong> 1000. Assume value <strong>to</strong> be declared<br />

as an Integer.<br />

value = 888<br />

While value

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!