	.data
array:	.word 7, 10, 11, 7, 17, 5, 11
n:      .word 7
sp:	.asciiz " "

	.text
	
	li $s0, 1
	lw $s1, n
	la $t0, array # t0 apunta a array[0]

ciclo:
	bgt $s0, $s1, final
	
	lw $a0, 0($t0)
	
	# imprime
	li $v0, 1
	syscall
	
	li $v0, 4
	la $a0, sp
	syscall
	
	addi $t0, $t0, 4
	addi $s0, $s0, 1

	j ciclo

final:
	li $v0, 10
	syscall
