Question: This is in assembly in without debugging I just want to know what I'm doing wrong in this code no real changes aside from fixing
This is in assembly in without debugging I just want to know what I'm doing wrong in this code no real changes aside from fixing the loop- no matter what it only loops twice and then the program stops when it should be doing it atleast 5 times. 
Lab 7A - Summing Numbers Ask the user for the amount of numbers they would like to input. Construct a counted loop that will run the number of times the user specified. Inside the loop input numbers from the keyboard and sum all of the odd and even numbers. Use two DWORD variables to hold the odd and even sums. Create a DWORD variable called divisor and store 2 in it. This will be used to divide the number input. Do not use .IF and .ELSE constructs Your program should look like the following: How many number do you want to input? 5 Enter a number 1 Enter a number 2 Enter a number 3 Enter a number 4 Enter a number 5 The sum of the even numbers is 6 The sum of the odd numbers is 9 Press any key to close this window... Something to consider: When you read a number from the keyboard. You need to store it to another register before calling the div instruction. Remember, the div instruction will modify both the eax and the edx register. If you store the value read into the ebx for instance you can simply add it to the even or odd sum depending on the result of the division. IMPORTANT: Do not use the word EVEN as a label. It is a keyword in assembly and your code will not compile
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
