Question: write in arm assembly language Write a program with a loop that lets the user enter a series of integers. The user should enter 9
write in arm assembly language
Write a program with a loop that lets the user enter a series of integers. The user should
enter to signal the end of the series. After all the numbers have been entered, the
program should display the largest and smallest numbers entered.
this is C program and i need it in arm assembly
#include
using namespace std;
int main
int number;
int largest, smallest;
cout "Enter a series of integers to end: ;
cin number;
Initialize largest and smallest with the first valid input
largest smallest number;
Loop to get the series of numbers
while number
Compare each number with the current largest and smallest
if number largest
largest number;
if number smallest
smallest number;
cin number; Get the next number in the series
Output the results
cout "Largest number: largest endl;
cout "Smallest number: smallest endl;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
