We're somewhat back to the same issue of me having to guess what problem you are trying to solve. You are doing things my specs didn't tell you to do and not doing something mine did. I don't know if that was intentional or not.
Your indenting implies a code structure which does not match the code.
Run your program and try to double the final number. Are you able to do it?
What is the purpose of the statement on line 29? What is the value of j when that statement is executed?
Your indenting implies a code structure which does not match the code.
Run your program and try to double the final number. Are you able to do it?
What is the purpose of the statement on line 29? What is the value of j when that statement is executed?