Dim x As DoubleDim i As IntegerDim Z(15) As Double
x = 1
For i = 1 To 15Z(i) = Cos(x) + Tan(x)x = x + 0.92Next i
For i = 1 To 15Console.WriteLine("Z(" & i & ") = " & Z(i))Next i
Dim x As Double
Dim i As Integer
Dim Z(15) As Double
x = 1
For i = 1 To 15
Z(i) = Cos(x) + Tan(x)
x = x + 0.92
Next i
For i = 1 To 15
Console.WriteLine("Z(" & i & ") = " & Z(i))
Next i