answersLogoWhite

0

adding three numbers is: so it just make it 5 numbers :)

inp

sta one

inp

sta two

inp

sta three

lda one

add two

add three

sta answer

out

hlt

one dat

two dat

three dat

answer dat

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

What is the instruction set to multiply to positive numbers together using Little Man Computer...I'm going insane trying to figure this out?

you can't multiply on LMC you can only add numbers so you have to add the same number as many times as you need to multiply example 5 times 3 5+5+5


How do you multiply two numbers in Little man computer?

In Little Man Computer (LMC), multiplying two numbers involves a series of steps since LMC does not have a direct multiplication instruction. Typically, you would load the first number, then repeatedly add it to a total for as many times as the value of the second number. This can be done using a loop that decrements the second number until it reaches zero, while keeping track of the accumulated sum in a separate memory location. Finally, the result stored in the total memory location represents the product of the two numbers.


Can Little Man Computer perform multiplication?

yes


How do you make little man computer multiply?

To make the Little Man Computer (LMC) multiply, you can implement a simple algorithm using its instruction set. First, load the first number into the accumulator, then repeatedly add this number to a total while decrementing the second number (the multiplier) until it reaches zero. Store the result in a designated memory location after the loop concludes. This process effectively simulates multiplication using repeated addition.


Who is important man or computer?

obviously man as computer are made for helping man, not man for helping computer.


What is the median of 5 10 9 14 2?

Shouldn't u be in skool young man? Haha its 62. Add all numbers then divide ur answer by the number of numbers


Is a glitch made by computer or man?

Technically, it is a little of both. Man designed the computer, but the computer was the one who had the glitch, but man must have already designed the computer with the glitch, but the glitch could also have arrived due to a malfunction on the computer's part. It really depends on the situation, because if the computer had a glitch as soon as it was turned on and used within the first day of use, then the glitch was man's fault, because it had a glitch from the start. If the glitch occured a week or even months after you got the computer, then it was a glitch on the computer's part, since it had created it after working for a while.


Who is the powerful the man or the computer?

the man cause the man can unplug the computer. lol


What two numbers multiply to 1600 and add to 80?

1680


How do you find mean?

Assuming you mean the mathematical mean, it's the same thing as an average. Add each of the numbers up, then divide the sum by the amount of numbers you added. So if you were trying to find the man of 4, 5, and 9. You would add them up, 18. Then divide by 3, since there were 3 numbers. The answer is 6.


What is character interm of computer?

My little man who lives in my pants invited this hole and wore it like a hat and it didnt ask me first. how rude is he?


Who was the computer-man?

Slender Man.