Q-2: Write a program in Assembly language using MIPS instruction set that reads an integer number from the user and prin
Posted: Fri May 20, 2022 1:19 pm
Q-2: Write a program in Assembly language using MIPS instruction set that reads an integer number from the user and prints whether the number is a Perfect number or not. A Perfect number is a positive integer that is equal to the sum of its proper divisors. The smallest Perfect number is 6, which is the sum of 1, 2, and 3. Other Perfect numbers are 28, 496, and 8,128. You are allowed to use mul and div instructions. Sample Input/Output: Enter an integer number: 29 It is not a perfect number. Enter an integer number: 33550336 It is a perfect number.