Page 1 :
11:58AM © 4*- O al) & at! Go):, , =e ae) Nl, , If we want to specify the lower limit, then the parentheses should inclu, lower and upper limit along with the To keyword. An example for this is give, , , , Dim Num (6 ) As Integer, Num (0) | Num (1) | Num (2) | Num (3) | Num (4) | Num (, - 1 3 -10 5 3, , , , , , Num (6), , , , , , , , , , , , , , , , , , In the above statement an array of 10 elements (Num(10)) is declared but, running from 1 to 6., , Exampl: Write a code program to read of one dimensional array A(5). Print t, position of each element., , A=[2 4 5 6, , Solution 1:, , Dim A(5) as single, Picturel.cls sition ese ol ara, Picture1.Print "position"; Space (3): "Value of element", For I=1 To 5, , A(1)= Val(InputBox(*”)), , Next I, , For I= 1 to 5, , Picture1.Print I; Space (11): A(), , Next, , Solution 2:, , Dim A(5) as single, , Picturel.cls, , Picture1.Print "position"; Space (3): "Value of element", For I= 1 To 5, , A(1)= Val(InputBox(*”)), , Next I, , For I= 0 to 5, , Picture1.Print I; Space (11): A(1), , Next, , , , Note: In solution 2, The type value of array (A) as single. then the default value of A(0)=, value of array(A) as Variant, then empty value in position A(0)., , silion Yalue of element, , , , oo (=) a i], , Tools Mobile View Share PDF to DOC, , a © <