vaughn2362 vaughn2362
  • 09-04-2024
  • Engineering
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 task1.s.
Test cases:
(1) n = 7;
(2) n = 13;
(3) n = -1.

Respuesta :

Otras preguntas

what is a quote from the odyssey that shows odysseus' religion
what is a quote from the odyssey that shows odysseus' religion
What is the volume of a sphere when r = 9 ft
What is the volume of a sphere when r = 9 ft
what are two possible uses of genetic engineering
what is a quote from the odyssey that shows odysseus' religion
At sea level, water boils at 100 degrees celcius and methane  boiled at -161 degrees celcius. Which of these substances has a stronger force of attraction betwe
What is the volume of a sphere when r = 9 ft
At sea level, water boils at 100 degrees celcius and methane  boiled at -161 degrees celcius. Which of these substances has a stronger force of attraction betwe
what are two possible uses of genetic engineering