Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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'.
Advertisement
Add Comment
Please, Sign In to add comment