So decide how you would solve the problem without a computer. Say for example someone handed you a sheet of paper with the numbers printed on it.
What steps would you take to solve the problem...
Type: Posts; User: jps
So decide how you would solve the problem without a computer. Say for example someone handed you a sheet of paper with the numbers printed on it.
What steps would you take to solve the problem...
How are the numbers stored? Are they supposed to be user input?
What exactly are you stuck on, writing the algorithm or the code?
--- Update ---
Thread moved from "Whats wrong with my code?"