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. 
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