How to solve these 2 problem by using Lc3 assembly language,
For example,
Question:
1) Write a simple LOOP program to add “1+2+3+4+5+6+7+8+9+10” and output the sum;
2) Write a program to check for ODD/EVEN number. Make it loops many times, finishes when user enter ‘0’: (Assuming user only input single digit number 1~9, and exit when the input is ‘0’)
example:
Please enter a number: 2
Thanks, 2 is an even number.
Please enter a number: 9
Thanks, 9 is an odd number.
Please enter a number: 0
Thanks, see you again.
please do it in assembly language, not in C or other high level language, really need help!