Question: Write a LMC program that calculates the sum of numbers provided by the user. Display the summation as output before halting the program. If the
Write a LMC program that calculates the sum of numbers provided by the user. Display the summation as output before halting the program.
If the user has provided less than or equal to ten input values, then only sum even numbers. Odd numbers are ignored.
If the user has provided more than ten values, then only sum any odd numbers after the tenth input. The existing summation of even numbers shall remain.
If the user enters zero, at any point, then the summation is displayed
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
