Its showing segmentation fault . Please correct my code

Hello @mdj please wait i am checking your code:

Hello @mdj its verry messy and not understandable.
please explain what you are trying to do?


see this .