Tue May 16 2023 17:19:45 GMT+0000 (Coordinated Universal Time)
Saved by @ahmed_salam21
.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
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments