Find the output for the given program 10 dim m(5) 20 for i=1 to 5 30 m(i) =(3*5)+5 40 print m(i) 50 next i 60 end *
Answers
Answered by
2
Required Answer:-
Given C∅de:
10 DIM M(5)
20 FOR I = 1 TO 5
30 M(I) = (3*5)+5
40 PRINT M(I)
50 NEXT I
60 END
Output:
20
20
20
20
20
Explanation:
- Line 10: Create an array of 6 elements (5+1).
- Line 20: Iterate a loop from I = 1 to 5.
- Line 30: Stores 20 in the index range 1 - 5 (excluding 0).
- Line 40: Displays the array element which is just initialised before in the previous line.
- Line 50: End of loop.
- Line 60: End of program.
•••♪
Answered by
0
Answer:
PLEASE mark me as a brainliest
Similar questions