4
.
, .
( 5) ( ). . .
- ;
- ;
- , ;
- .
VB.NET, , , , ( , ) . VB . , While/Wend, .
, , For Next. , 1 10:
Sub Main()
Dim i As Integer
For i = 1 To 10
Console.WriteLine(i)
Next i
Console.ReadLine()
End Sub
- , , . , . , VB.NET , Next ( Next ). 1, . , , . , .
, Integer. VB.NET , .
, , 2, . VB, For-Next Step.
:
Sub Main()
Dim i As Integer
For i = 10 To 1 Step = -1
Console.WriteLine("It's t minus " & i & " and counting.")
Next i
Console.WriteLine("Blastoff!")
Console. ReadLine()
End Sub
|
|
For-Next , . , . 0 ListCount, , ListCount 0 -1 .
Step . :
for yearlylnterest =.07 .09 Step.00125D
7 9 1/8 . Decimal .
VB.NET . :
Sub Main()
Dim i, j As Integer
For j = 2 To 12
For i = 2 To 12
Console.Write(j & " ")
Next i
Console.WriteLine()
Next j
Console.ReadLine()
End Sub
WriteLine Write, .