No problem. He's got enough problems in that code for more than one person. :p
Type: Posts; User: KevinWorkman
No problem. He's got enough problems in that code for more than one person. :p
I'd recommend you run through this with a debugger, or at least put in a bunch of print statements, to figure out what's going on. I already gave you a hint.
What output are you getting? What output did you expect?
Do you really not indent your code?
Hint: Print out the index you're updating when you populate your c array in both for loops.