Silver_Smoulder icon

[ASM][Proto]Pythagorean Theorem Project 5

Silver_Smoulder | PRO | 05/22/19 03:05:15 PM UTC | 0 ⭐ | 420 👁️ | Never ⏰ | []
text |

610 B

|

None

|

0 👍

/

0 👎

List of functions:
allwork
input
pow (power)
check
print
main should look like:
 main:
    jal    allwork
    li    $v0,10
    syscall
 function allwork will call function input which will ask the user for a number, 
input will call function pow which will square the number (it must work with any exponent >=0)
allwork will also call function check, which will check if it's a right triangle,
and function print, which will output if it is a right triangle or not.
some of these functions will be called more than once
you will need the stack to manage the nested functions, and their return address'.

Comments