Professional Documents
Culture Documents
Solution:
Dim N
N= Val (InputBox(N=))
ReDim A(N)
For I=1 To N
A(I) =Val(InputBox())
Sum=Sum+A(I)
Next
Text1.Text=Str (Sum)
QWrite a code program to read of one dimensional array A(5). Print the value
and position of each element.
Picture1.cls
Picture1.Print "position"; Space (3); "Value of element"
For I= 1 To 5
A( I )= Val(InputBox())
Next I
For I= 0 to 5
Picture1.Print I; Space (11); A(I)
Next
Method Description
Line Draws lines on a form. Can also be used
to draw rectangles.