troyisbeast6436 troyisbeast6436 26-03-2024 Computers and Technology contestada Write a function square in risc-v that takes in an integer n and returns its square if n ispositive. otherwise, return 0. save your source code as cases:(1) n = 7;(2) n = 13;(3) n = -1.