Question: Write a program in Assembly language using MIPS instruction set to read three integer numbers from user and find out the largest among all
Write a program in Assembly language using MIPS instruction set to read three integer numbers from user and find out the largest among all the numbers. Consider the following C program to understand the logic behind the problem. #include Sample Input/Output: Enter three different numbers: int main() double n1, n2, n3; printf("Enter three numbers: "); scanf("%lf X1 X1, 8n1, 8n2, 8n3); if (nl)-n2) if(133) else printf("%.21f is the largest number.", n1); printf("%.21 is the largest number.", n3); 48 69 12 69 is the largest number. Sample Input/Output: Enter three different numbers: 112 else if(n2>3) printf("X.21 is the largest number.", n2); else printf("%.21f is the largest number.,n); return 0; 87 568 568 is the largest number.
Step by Step Solution
There are 3 Steps involved in it
data prompt1 asciiz Enter the first number prompt2 asciiz Enter the second number prompt3 asciiz Enter the third number result asciiz is the largest n... View full answer
Get step-by-step solutions from verified subject matter experts
