Question: Lab 4 ARM Program Basic Prompt the user to enter a number between 1 and 100. Reject any invalid user inputs and terminate the program.
Lab 4 ARM Program Basic
Prompt the user to enter a number between 1 and 100. Reject any invalid user inputs and terminate the program.
From 1 to the user entered number print out the number and the sum of all the integers to that point.
Terminate the program when all the numbers from 1 to the user entered number is printed.
Example of what the output should look like:
This program will print the sum of the integers from 1 to a number you enter. Please enter an integer number from 1 to 100.
You entered 4. Following is the number and the sum of the integers from 1 to n.
NumberSum
Your program needs to be well commented.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
