Question: Q-1: Write a program in Assembly language using MIPS instruction set that will accept an integer N from the user and display a message whether
Q-1: Write a program in Assembly language using MIPS instruction set that will accept an integer N from the user and display a message whether N is odd or even. Considering the fact that all odd numbers must contain digit 1 in its least significant bit and all even numbers must contain digit 0 in its least significant bit.
Sample Input: Enter a number: 688 Sample Output: It is an Even number.
Sample Input: Enter a number: 997 Sample Output: It is an Odd number.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
