Explore BrainMass

Little Man Computer: largest of three values.

Write a Little Man Computer (LMC) program that accepts three values as input and produces the largest of the three as output.

Solution Preview

Please note that given program is a sample implementation and it is possible to have more than one implementations solving the same problem. This program has been tested using the Little Man Simulator at .

INP // Accept first number from user and
STA FIRST // store it in location FIRST.
INP // Accept second number from user and
STA SECOND // store it in ...

Solution Summary

Program mentioned in text response has been commented well to make it easier to understand the implemented logic.