# array with for loop

"""
from array import *
vals=array('i',[5,9,-8,4,2])
for i in range (5):
    print(vals[i])

"""

# array with while loop

from array import *
vals=array('i',[5,9,-8,4,2])

i=0
while i<len(vals):
    print(vals[i])
    i=i+1
