Script no conditionals

Hello, pro scripters, noob here,

I am complete noob in this and I have to write a program which:
Calculates the modulus of two numbers which the user enters with keyboard. Number interval 1-9. These two numbers that were entered and modulus which was calculated are stored in a separate file.
When the modulus equals 0, two previously entered numbers along the the calculated modulus (which is zero) are printed on the screen to the user.
The only constraint about the code - no conditionals should be used writing the program (if, while, etc.).

Please help me to do this. Cannot think of it myself.
I know little and we just started learning bash scripting so it should be simple I guess.
I tried to play with "sed" "grep" "read" commands without much success. Cannot fullfill all the requirements.
Please help. This is a very brief example what I have managed to do. :confused:

echo "Enter two numbers 1-9"
read -n 1 num1
echo $num1 > var.txt
read -n 1 num2
echo $num2 >> var.txt
expr $num1 % num2 >> var.txt

Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.