Task5_GUI
Tue May 16 2023 18:17:19 GMT+0000 (Coordinated Universal Time)
Saved by
@Youssef_Taj
.data
x:.asciiz"Enter a number "
y:.asciiz"Factorial result is "
.text
li $v0,51
la $a0,x
syscall
move $s0,$a0
move $s1,$a0
li $t0,1
loop:
mul $t0,$t0,$s0
addi $s0,$s0,-1
bgtz $s0,loop
li $v0,56
move $a1,$t0
la $a0, y
syscall
content_copyCOPY
Comments