.data
Msg1: .asciiz "Enter the first integer: "
Msg2: .asciiz "Enter the second integer: "
Msg3: .asciiz "Enter the third integer: "
.text
li $v0, 4
la $a0, Msg1
syscall
li $v0, 5
syscall
move $t0, $v0
li $v0, 4
la $a0, Msg2
syscall
li $v0, 5
syscall
move $t1, $v0
li $v0, 4
la $a0, Msg3
syscall
li $v0, 5
syscall
move $t2, $v0
blt $t0, $t1, L0
blt $t1, $t0, L3
li, $v0, 10
syscall
L0:
blt $t0, $t2, L2
blt $t2, $t0, L3
L2:
li $v0, 1
move $a0, $t0
syscall
li, $v0, 10
syscall
L3:
blt $t1, $t2, L4
blt $t2, $t1, L5
L4:
li $v0, 1
move $a0, $t1
syscall
li, $v0, 10
syscall
L5:
li $v0, 1
move $a0, $t2
syscall
li, $v0, 10
syscall
li, $v0, 10
syscall