A
A
Andr2016-11-08 12:36:04
assembler
Andr, 2016-11-08 12:36:04

Assembler, how to build an algorithm for a problem?

Hello, I'm learning assembler and I was given a task . If you enter more, less or exactly 5, then you need to display some information. The head does not boil what algorithm to come up with. Can someone suggest? I would appreciate that!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2016-11-08
@dashademkova

Get the entered value.
if you enter a void, print an error.
compare if it is equal to 5, display information1
compare if it is greater than 5, display information1
compare if it is less than 5, display information1
The algorithm is simple.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question