Does your program work, and you want to improve it? Or are you getting some sort of error? If the former, consider whether or not it is better asked here or at
Code Review . If the latter, please edit the question to clarify how the program fails. Before moving to Code Review, please review their good question standards. —
Old Dog Programmer 52 secs ago