Pretend you are explaining the problem to another person. List the steps you need to explain to the other person so he can do the job. Computer programs are a list of simple steps to be done one after the other.
You need to make that list of steps before you can write the code.
Break that down into simple steps and list them.generate random math problems
What needs to be done first?
When you get that list of steps, then we'll work on writing the code.does not teach you how to write a code