Question: 1. Write a MARS MIPS program that asks the user to enter the number of integers that needs to be added together ONLY IF the

1. Write a MARS MIPS program that asks the user to enter the number of integers that needs to be added together ONLY IF the number is divisible by 2. Then you use the loop to get the integers from user and add them together. Finally your program should output the sum on the screen.

Sample input and output could be:

How many numbers you like to add together? 5

2

3

5

8

10

The sum of the numbers is 20

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!