Hello!
I saw that there were a few differente ways to do math within bash scripts.
expr and bc are possibilities. But which one to use when?
I want to make an simple bash script for children to do math.
The script must ask only questions like 1*1= till 10*10= ...
No + or - or / only * questions.
When the good answer is given to a questions, the next question must be shown.
When the wrong answer is given to a question, the same question must be repeated till the good answer is given.
The output must be logged to a file. the questions begins from 1*1 till 1*10, and the same for 2*1 till 2*10, 3, 4, 5, 6, 7, 8, 9 etc.....
How can I accomplish this, or can you help me out with it?
10* Many, many thanks in advance